Search This Blog

Friday, April 24, 2009

Print Crystal Report(Server-Side)

crReportDocument.PrintOptions.PrinterName= printername;
// set 0 for all documents to print
crReportDocument.PrintToPrinter(1,false,0,0);

where crReportDocument is an object of ReportDocument and printername is the name of the printer.