How to print Crystal report directly
-
:doh:Dear all I would like to have your best favor due to my little bit matter, I have a report which is generated under crystal report, I want to print all report directly without see the report preview first through Crystal report program. do you know any visual basic .net command that will instruct the program to print any report directly no need to see the crystal report print preview ? Thank you
ICE
-
:doh:Dear all I would like to have your best favor due to my little bit matter, I have a report which is generated under crystal report, I want to print all report directly without see the report preview first through Crystal report program. do you know any visual basic .net command that will instruct the program to print any report directly no need to see the crystal report print preview ? Thank you
ICE
try this...
If PrintDialog.ShowDialog = Windows.Forms.DialogResult.OK Then reportDocumentObject.PrintOptions.PrinterName = PrintDialog.PrinterSettings.PrinterName reportDocumentObject.PrintToPrinter(PrintDialog.PrinterSettings.Copies, False, 1, 9999) End If
Steve Jowett ------------------------- Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'