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

Passing parameter to CR from VB...

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I'm using CR 4.5 that came with VB 6.0. How can I pass parameters to my Crystal Report like title.

Any help will be greatly appreciated.

 
Try something like this:

formName.CrystalReport1.Formulas(0) = "Title"

This works in Crystal 7. You will need to make an empty formula field on your report to pass in the title.

Good luck.
 
Try this:

formName.CrystalReport1.ParameterFields[parameterno] := 'prameterfieldname;value;TRUE';

eg.

MyForm.CrystalReport1.ParameterFields[0] := 'title;MYTITLE;true'

This works fine... and helps to pass parameters to Crystal Report...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top