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

Sending Crystal report to print

Status
Not open for further replies.

Alkemac

IS-IT--Management
Jun 3, 2003
23
0
0
ZA
Very simple question - how do I programmatically send a Crystal Report to the default printer through VB6 ?

Thanks
 
Use the Report object's PrintOut method. Unless there was a call the the SelectPrinter method, it should go to the default.
[tt]
Report.PrintOut ([PromptUser], [NumberOfCopies], [Collated], [StartPageNumber], _ [StopPageNumber])[/tt]

-dave
 
Thanks for the quick reply... Just in closing, how do I suppress the dialogue box from appearing, is that just a false. Only need one copy and no collation. How do I supply those ?

Thanks!
 
Set the PromptUser parameter to False.

If you choose to battle wits with the witless be prepared to lose.

[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top