Click to See Complete Forum and Search --> : Crystal Reports API - any experts here?


Crazy D @ Work
September 20th, 1999, 04:41 AM
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 :-)

Aaron Young
October 20th, 1999, 01:15 PM
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
adyoung@win.bright.net
aarony@redwingsoftware.com