private void btnPrint_Click(object sender, EventArgs e)
        {
            TheoDoiChuyenTien chuyenTienReport = new TheoDoiChuyenTien();

            chuyenTienReport.SetDataSource(eMSDBDataSet);
            chuyenTienReport.PrintOptions.PaperSize        = CrystalDecisions.Shared.PaperSize.PaperA4;
            chuyenTienReport.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
            chuyenTienReport.PrintToPrinter(1, false, 1, 1);
            chuyenTienReport.Dispose();
        }
Exemple #2
0
 private void xemBaoCaoForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (crvReport.ReportSource == shReport)
     {
         shReport.Dispose();
     }
     else if (crvReport.ReportSource == mdkReport)
     {
         mdkReport.Dispose();
     }
     else if (crvReport.ReportSource == bcth)
     {
         bcth.Dispose();
     }
     else if (crvReport.ReportSource == tdctReport)
     {
         tdctReport.Dispose();
     }
 }