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); }
public void PrintImmediate() { MSRptViewerUtil.SendToPrinter(reportViewer1.LocalReport, reportViewer1.PrinterSettings); }