Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports -- how do I...?
Message
 
To
03/11/2001 14:30:31
Adam Weisberg
Adam Weisberg Consulting
Athens, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00577147
Message ID:
00577199
Views:
18
Adam,

>1. Sending Parameters to the report: how do I, after creating an instance of my report, fill in the Parameter fields programatically? (I don't want it to prompt the user.)

There are a couple of ways to do this. For starters, you would assign the param field values the same way as a regular formula field - get a reference to the field object and then just set its value. As for not prompting the user, there's a boolean property on the Report object called EnableParameterPrompting which you can set to false. My other thought on this is that if you NEVER want the report to prompt for parameters, then you might want to consider making the parameter fields just be regular formula fields whose values you just manipulate at runtime.


>2. The fields do not mostly seem to have names. How do I specify that I want such and such a date field, eg., to have a particular Format programatically?

What do you mean by the fields not having names? Every field in the report has a name, whether it's a field from a database or a formula field you create. If you check the Crystal developer's help section on FieldObject Object (RDC), you'll find a listing of all the formatting properties that you can mess with at runtime. In order to access the right field, you might have to set up a loop to cycle through the report's fields collection and match up the field name to get access to the right one.


>3. Once I can name the fields to change their properties, is there a list of properties with good descriptions in a text files somewhere? -- The Help is not terribly helpful.

Actually, as mentioned above, the developer's help file is really quite helpful and has a full list of all object properties and methods. Be sure you're looking at the right help file.

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform