This is a migrated thread and some comments may be shown as answers.

Directly print pdfs

2 Answers 982 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Al asked on 13 May 2019, 01:08 PM

I am trying to print existing pdfs from a database.    I am working mainly in asp.net expecting the print to happen on the server.  This works for other types of files and I also use Telerik reporting which automatically prints reports on the server.   The problem is what do I use to open an existing pdf and then send it to a printer without user interface.

2 Answers, 1 is accepted

Sort by
0
Al
Top achievements
Rank 1
Iron
answered on 13 May 2019, 03:11 PM

    I tried this

Dim mViewer As New Telerik.WinControls.UI.RadPdfViewer
            Using ms As New Memorystream(bytes)
                mViewer.LoadDocument(ms)
            End Using
            mViewer.LoadElementTree()
        
            Dim document As New Telerik.WinControls.UI.RadPrintDocument()
            Dim printerSettings As New System.Drawing.Printing.PrinterSettings()
            printerSettings.PrinterName = "Brother MFC-J5625DW Printer1"
            document.PrinterSettings = printerSettings
            document.AssociatedObject = mViewer

            document.Print()

0
Peshito
Telerik team
answered on 16 May 2019, 09:03 AM
Hello Al,

The current implementation of DocumentProcessing library does not provide a print functionality. We have a feature request logged in our Feedback Portal, where you can vote to increase the priority and subscribe to be notified for any status updates - DocumentProcessing: Printing. As a workaround, you could use the proposed approach in the item.

Hope this helps.

Regards,
Peshito
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PdfProcessing
Asked by
Al
Top achievements
Rank 1
Iron
Answers by
Al
Top achievements
Rank 1
Iron
Peshito
Telerik team
Share this question
or