打印账票的方法:
var sectionDocument = objReport.Document;
if (blnUsePrintThread)
{
sectionDocument.Print(false, false, true);
}
else
{
sectionDocument.Print(false, false, false);
}
预览显示方法:
WinReportViewer mainWindow = new WinReportViewer(objReport);
mainWindow.Title = strTitle;
mainWindow.ShowDialog();
mainWindow.Activate();
PrintFlg = mainWindow.PrintFlg; |