Esempio n. 1
0
 /// <summary>
 /// 打印预览
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void tsmPreviewReport_Click(object sender, EventArgs e)
 {
     if (tsmChooseReport.HasDropDownItems)
     {
         report = new FastReport.Report();
         if (!report.IsRunning)
         {
             GetData(tsmChooseDetail[iDefaultChecked].Name);
             report.Load(new MemoryStream(bt));
             RegReportData();
         }
         frmReportPreview rp = new frmReportPreview(report);
         rp.ShowDialog();
         report.Dispose();
     }
 }
Esempio n. 2
0
 void DesignerSettings_CustomPreviewReport(object sender, EventArgs e)
 {
     frmReportPreview rp = new frmReportPreview(report);
     rp.ShowDialog();
 }