コード例 #1
0
 private void btnDisplay_Click(object sender, EventArgs e)
 {
     _templateReport = null;
     if (rdoGroupSelection.SelectedIndex == 0)
     {
         _templateReport = new Report.BaoCaoCongNo(0);
     }
     else if (rdoGroupSelection.SelectedIndex == 1)
     {
         _templateReport = new Report.BaoCaoCongNo(1);
     }
     else
     {
         _templateReport = new Report.BaoCaoCongNo(2);
     }
     this.dcmvReport.DocumentSource = null;
     this.dcmvReport.DocumentSource = _templateReport;
     _templateReport.CreateDocument();
 }
コード例 #2
0
 private void BaoCaoCongNo_Form_Load(object sender, EventArgs e)
 {
     _templateReport = new Report.BaoCaoCongNo(DateTime.Now);
     this.dcmvReport.DocumentSource = _templateReport;
     _templateReport.CreateDocument();
 }