void directPirint()
{
try
{
DevExpress.XtraReports.UI.XtraReport report = new rep1();//your report class
report.CreateDocument();
DevExpress.XtraPrinting.PrintToolBase printTool =
new DevExpress.XtraPrinting.PrintToolBase(report.PrintingSystem);
//printTool.Print("Microsoft Print to PDF printer");//select printer with name
printTool.Print();//default printer
}
catch (Exception ex)
{
Response.Write(ex.Message);
return;
}
}
Yorumlar
Yorum Gönder