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

Parameter Prompting - Crystal 10

Status
Not open for further replies.

tb

Programmer
May 27, 2003
328
Hi all,

How can I stop the parameter prompting when I open a Crystal 10 report from VB via the Crystal ActiveX Report Viewer?

I clear the RecordSelectionFormula
(.RecordSelectionFormula = "")
Then I loop through the Parameter Fields and user the ClearCurrentValueAndRange method, then I then use the AddCurrentValue method to set the parameter values report.
BUT it still prompts me for parameters.

Any help or suggestions would be much appreciated.





I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
 
Whilst I admit, this is version 9 code

Code:
crReport.EnableParameterPrompting = False

I doubt that the object model will have changed that much


Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Worked like a charm!

Thanx
:)

I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top