Page 1 of 1

Print PDF

Posted: Thu Jun 05, 2014 5:51 am
by SamLeung
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?

Re: Print PDF

Posted: Sun Jun 08, 2014 10:08 am
by SamiKharma
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