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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Prompt

Status
Not open for further replies.

netusepk

IS-IT--Management
Feb 28, 2001
17
0
0
US
Hi,
I am printing a report off a VB application by passing parameters to the report but I am getting the dialog box prompting with the parameter values to the report, Is there a way to supress or eliminate this.
Thanks
jack
 
There is an argument in the command to set the parameter that tells it to bypass the prompt. Of course, this varies based on your integration method. Post the command line that sets the parameter. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
If you're doing things the old way via the OCX...

Set the 3rd parameter to .ParameterFields() to "TRUE". Parameters 1 and 2 are the name of the parameter in Crystal and the value you are passing:

CrystalReport1.ParameterFields(0) = "paramName;paramValue;TRUE"

Using the RDC, use the method .AddCurrentValue of the CRAXDRT.Report object:

Dim crxRep as CRAXDRT.Report
...
crxRep.ParameterFields.Item(1).AddCurrentValue paramValue
Brian J. Alves
Terrier Consulting, Inc.
Email: brian.alves@worldnet.att.net
VB / Crystal / SQLServer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top