private void ExportDataReport_Click(object sender, RoutedEventArgs e) { StringWriter sw = new StringWriter(); m_LawIncidentType.oDataSet.WriteXml(sw); string XMLResult = sw.ToString(); string XMLHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?> "; PrintReportBrowser.NavigateToString(XMLHeader + XMLResult); }
private void DeltaIncidentButton_Click(object sender, RoutedEventArgs e) { string PDFFileLocation = @"C:\Dev\Invert911\Invert911_RMS\InvertCommon\Reports\LawIncident\DeltaReports\IncidentReport.pdf"; PDFUtility p = new PDFUtility(); Dictionary <string, string> d = p.ReadAllFields(PDFFileLocation); string s = d.ToString(); PrintReportBrowser.Navigate(PDFFileLocation); }
private void DeltaIncidentButton_Click(object sender, RoutedEventArgs e) { string FolderPath = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName); //starup path string PDFFileLocation = System.IO.Path.Combine(FolderPath, @"Reports\LawIncident\DeltaReports\IncidentReport.pdf"); if (File.Exists(PDFFileLocation)) { PDFUtility p = new PDFUtility(); Dictionary <string, string> d = p.ReadAllFields(PDFFileLocation); string s = d.ToString(); PrintReportBrowser.Navigate(PDFFileLocation); } }
private void ClearReportViewer() { string HTMLString = "<BR><BR><BR><H1><Center>Invert911<BR>Law Incident Reports</Center></H1>"; PrintReportBrowser.NavigateToString(HTMLString); }
private void StandardReportButton_Click(object sender, RoutedEventArgs e) { LawIncidentStandardReport ru = new LawIncidentStandardReport(); PrintReportBrowser.NavigateToString(ru.PrintReport(m_LawIncidentType.oDataSet)); }
private void MediaIncidentButton_Click(object sender, RoutedEventArgs e) { ReportUtility ru = new ReportUtility(); PrintReportBrowser.NavigateToString(ru.PrintVerticalDataSet(m_LawIncidentType.oDataSet)); }