예제 #1
0
        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);
        }
예제 #2
0
        private void ClearReportViewer()
        {
            string HTMLString = "<BR><BR><BR><H1><Center>Invert911<BR>Law Incident Reports</Center></H1>";

            PrintReportBrowser.NavigateToString(HTMLString);
        }
예제 #3
0
        private void StandardReportButton_Click(object sender, RoutedEventArgs e)
        {
            LawIncidentStandardReport ru = new LawIncidentStandardReport();

            PrintReportBrowser.NavigateToString(ru.PrintReport(m_LawIncidentType.oDataSet));
        }
예제 #4
0
        private void MediaIncidentButton_Click(object sender, RoutedEventArgs e)
        {
            ReportUtility ru = new ReportUtility();

            PrintReportBrowser.NavigateToString(ru.PrintVerticalDataSet(m_LawIncidentType.oDataSet));
        }