Пример #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 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);
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
        private void ClearReportViewer()
        {
            string HTMLString = "<BR><BR><BR><H1><Center>Invert911<BR>Law Incident Reports</Center></H1>";

            PrintReportBrowser.NavigateToString(HTMLString);
        }
Пример #5
0
        private void StandardReportButton_Click(object sender, RoutedEventArgs e)
        {
            LawIncidentStandardReport ru = new LawIncidentStandardReport();

            PrintReportBrowser.NavigateToString(ru.PrintReport(m_LawIncidentType.oDataSet));
        }
Пример #6
0
        private void MediaIncidentButton_Click(object sender, RoutedEventArgs e)
        {
            ReportUtility ru = new ReportUtility();

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