コード例 #1
0
        private void btnExportAsPdf_Click(object sender, EventArgs e)
        {
            string vFileName =
                Application.StartupPath
                + "\\TEMP\\"
                + "Export"
                + "_"
                + DateTime.Now.ToString("ddMMMyy_hhmmsstt")
                + "."
                + "pdf";

            MSRptViewerUtil.ExportAsPDF(reportViewer1.LocalReport, reportViewer1.PrinterSettings, vFileName);
            System.Diagnostics.Process.Start(vFileName);
        }
コード例 #2
0
 public void PrintImmediate()
 {
     MSRptViewerUtil.SendToPrinter(reportViewer1.LocalReport, reportViewer1.PrinterSettings);
 }