Plotting PDF to OCE PlotWave 500

When my VB.NET program executes viewer.PrintDocumentWithSettings(pgs, ps), the print job appears in the OCE queue but never gets to the plotter.

The Pages column reads N/A and the Size column is empty in the queue.

The same PDF prints to the Canon iR-ADV printer with viewer.PrintDocumentWithSettings(pgs, ps),

The same PDF prints on the OCE from Adobe Acrobat Reader, but an additional dialog needs clicking on before the job gets to the plotter.

Are there more settings I need to be aware of when sending documents to the OCE plotter?

Thank you

Derek Williams

@Derek_Berek,
Kindly let us know which Aspose.Pdf for .NET API version you are using and share the code which you are using to send the print to OCE plotter. If you are not using the latest version 17.9, then we recommend you please download and try the latest version 17.9 of Aspose.Pdf for .NET API and let us know how that goes into your environment.

I downloaded and installed version 17.9

Here is the code:

Protected Sub btnPrint_Click(sender As Object, e As EventArgs) Handles btnPrint.Click

    Dim gvItemChecked As Boolean = False
    Dim gvr As GridViewRow
    Dim chkID As CheckBox

    Dim ps As New System.Drawing.Printing.PrinterSettings()
    Dim prtdoc As New System.Drawing.Printing.PrintDocument()
    Dim pgs As New System.Drawing.Printing.PageSettings()
    Dim thePdf As New Aspose.Pdf.Facades.PdfFileInfo
    Dim viewer As New Aspose.Pdf.Facades.PdfViewer()

    Dim theWidth As Double
    Dim theHeight As Double
    Dim drawingName As String = String.Empty

    ps.PrinterName = "OCE PlotWave 500 - WPD2"
    '  ps.PrinterName = "BW Canon" 

    theWidth = thePdf.GetPageWidth(1)
    theHeight = thePdf.GetPageHeight(1)


    Try

        For Each gvr In gvFiles.Rows
            chkID = CType(gvr.FindControl("chkID"), CheckBox)

            If chkID.Checked Then

                drawingName = CType(gvr.FindControl("hfFullName"), TextBox).Text
                thePdf.BindPdf(drawingName)
                viewer.BindPdf(drawingName)

                ps.PrinterName = "OCE PlotWave 500 - WPD2"
                viewer.AutoResize = True
                viewer.AutoRotate = True
                ps.Copies = 1
                viewer.PrintDocumentWithSettings(pgs, ps)

            End If
        Next

    Catch ex As Exception
        Throw 'throw so global.asax will handle sending email to web administrator
    End Try

End Sub

When I use “BW Canon” the pdf is printed.
When I use “OCE …” the print job appears in the queue, but it never makes it to the OCE plotter.

Thank you for your help
Derek

@Derek_Berek,
We have logged an investigation under the ticket ID PDFNET-43462 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

Hi Imran,
Have you been able to look into this problem?
Has a similar problem been reported before where the pdf leaves the queue, but never reaches the printer?
Thank you
Derek

@Derek_Berek,
The linked ticket ID PDFNET-43462 has just been identified. Our product team will investigate as per their development schedules. We will let you know once a significant progress has been made in this regard.

If you have reported this issue earlier in some other thread, then kindly share the link of this thread or the ticket ID. We will see its recent progress and let you know as well.

I changed the application-pool identity in IIS.

At first, the problem looks like it is a printing problem that has nothing to do with aspose.pdf, but this behavior only happened with pdfs printed with aspose.pdf.

Thank you

@Derek_Berek,

Kindly create a small Web application and make sure that it reproduces the same behavior in your environment, and then send us a Zip of this project. Your response is awaited.