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

Very Urgent...Viewer PrintReport method not working?

Status
Not open for further replies.

nomi2000

ISP
Feb 15, 2001
676
0
0
CA
Dear Fellow Programmers
I want to directly print the report without showing the VIEWER to the user i am using following code ( I have VB6.0 with CRYSTAL REPORT 8.5) and using REPORT files as DSR insdied VB with Viewer Control

Dim MyReport as new CrystalReport1
CrystalViewer1.ReportSource=MyReport
CrystalViewer1.PrintReport

Please helpe me what i am doing wrong...
Regards
Nouman
 
Is it something wrong with
PrintReport method of Report object,i am using Crystal 8.5 why its not prinitng directly on the installed printer...
Regards
Nouman
 
You must set a destination, see sample code:

With CrystalReport1
.Destination = crptToPrinter
.printreport
End With

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top