Beispiel #1
0
        static void Main(string[] args)
        {
            PdfDocumentView pdfViewer = new PdfDocumentView();

            pdfViewer.Load(@"../../Data/Barcode.pdf");
            pdfViewer.Print();
        }
 // Prints PDF file
 void PrintPDF()
 {
     pdfViewerControl = new PdfDocumentView();
     // Load the PDF document to be printed
     pdfViewerControl.Load(@"../../Data/Barcode.pdf");
     // Print the PDF document silently using the printer name.
     pdfViewerControl.Print("Pass your printer name here...");
 }