CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Crystal Reports API - any experts here?

    Hi
    I'm having problems using with setting a parameterfield using the PESetNthParameterField API.
    I'm using this function to set a paramfield, used as variable in certain formula fields (depending on this value, it shows a certain text or nothing).
    I can set all other paramfields, they all work fine (using the PESetSelectionFormula call), but this parameters that isn't linked to a field, it doesn't matter what value I give it, it ignores it. If I check it with the PEGetNthParameterField right after I set it, it shows the correct values, but the report doesn't do what it's supposed to do. It works in the Crystal Reports program itself, so the report is fine.
    Is there any crystal reports expert around who has a few minutes to help me on my way?
    Tnx a lot!

    Crazy D @ Work :-)

  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Crystal Reports API - any experts here?

    I had similar problems to this a few months ago when I was writing a Reporter Generator for our Software using Crystal Reports and MSAccess97. I found that any field I used in a Report that didn't have a default value set to one of the Data Fields in my Data source wouldn't accept anything I set it to. I got around it by just assigning a Data Field to it in the Report Designer, then I could set it to what ever I wanted in my Code and it worked fine.

    From what I could tell it was to do with how CR initializes the Fields of a Report, it seems to check for links, ignoring any fields that don't have one.


    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured