예제 #1
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);
            }
        }
예제 #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);
        }