예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptSlackMatCount rpt = new rptSlackMatCount();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
 private void btnPrintSum_Click(object sender, EventArgs e)
 {
     if (tbMain == null || bdsMain.Count == 0)
     {
         MessageBox.Show("无数据记录记录!");
         return;
     }
     Rpts.frmRptViewer frmX = new Rpts.frmRptViewer();
     frmX.RptTitle = "呆滞物料汇总报表";
     Rpts.rptSlackMatCount rptX = new Rpts.rptSlackMatCount();
     rptX.SetDataSource(tbMain);
     frmX.RptObj = rptX;
     frmX.SetReport();
     frmX.ShowDialog();
     frmX.Dispose();
     rptX.Dispose();
 }