Print PDF

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
SamLeung
Posts: 1
Joined: Thu Jun 05, 2014 5:39 am

Print PDF

Post by SamLeung » Thu Jun 05, 2014 5:51 am

i am using 9.4 version
i try to print pdf but not thing printed on paper

Code: Select all

Public Sub AddTask(ByVal pdfpath As String)
        Dim pdfcontent As New GdPicturePDF
        Dim ps As Printing.PrinterSettings = pdfcontent.PrintGetPrinterSettings
        If pdfcontent.LoadFromFile(pdfpath, False) = GdPictureStatus.OK Then
            If pdfcontent.PrintSetActivePrinter(printername) Then
                If pdfcontent.PrintGetStat = GdPictureStatus.OK Then
                    Dim dsa As String = pdfcontent.PrintGetStat.ToString
                    pdfcontent.Print()
                Else
                    Dim dsa As String = pdfcontent.PrintGetStat.ToString

                End If



            End If
        End If
        pdfcontent.CloseDocument()
any idea?

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Print PDF

Post by SamiKharma » Sun Jun 08, 2014 10:08 am

Hi,

Unfortunately we cannot do anything with the above code. Please check the GdPictureStatus returned from the Print function for more information. Shall you not know how to fix it afterwards please inform us of the status.

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest