Link to home
Start Free TrialLog in
Avatar of H-SC
H-SCFlag for United States of America

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
Avatar of Mohed Sharfi
Mohed Sharfi
Flag of Sudan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Éric Moreau
and to be able to print without the preview screen, you can call the PrintToPrinter method of the ReportDocument object.
Avatar of H-SC

ASKER

mSharfi,

The parameters work great
Avatar of H-SC

ASKER

emoreau,

Many thanks for the suggestions as well.  I have had your site bookmarked for quite some time.  A great site.
Avatar of H-SC

ASKER

one more thought...

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.