Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

At runtime pass parameter to report.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've created a report with a parameter. What I need is to pass that parameter without user input. Being done in VFP 6.0. I'm passing a variable to the parameter without user knowing. From this value I need the report to execute. At this time I have report working fine prompting me for value. I do not need to see prompt. I need to pass value to prompt and execute report.
 
How do you launch the report from VFP?

Crystal has 4 techniques from VB but I am not sure that they would all work from VB.

Active X (OCX?)
Direct API calls?

OCX would be something like:

rptMyReport.ParameterFields(0) = "ParamName;ValueToPass;true"

The &quot;true&quot; tells it not to prompt the user. [sig]<p>Ken Hamady- href= Reports Training by Ken Hamady</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top