H-SC
asked on
Pass 3 Parameters to crystal report from form TextBoxes
I have a form with 3 TextBoxes unbound. The user will enter all of the data in those 3 boxes. When a button is clicked I would like to pass those three into parameters that I have already set-up in my crystal report and then print the report without preview. How can this be done??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
see "Passing a value to a parameter of the report" from http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
and to be able to print without the preview screen, you can call the PrintToPrinter method of the ReportDocument object.
ASKER
mSharfi,
The parameters work great
The parameters work great
ASKER
emoreau,
Many thanks for the suggestions as well. I have had your site bookmarked for quite some time. A great site.
Many thanks for the suggestions as well. I have had your site bookmarked for quite some time. A great site.
ASKER
one more thought...
in the PrintToPrinter can I pass a numeric updown value for the number of copies to print?
in the PrintToPrinter can I pass a numeric updown value for the number of copies to print?
yes you can
I thought I would have received some points for the PrintToPrinter! Too bad.