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 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)); }