Skip to main content
Participant
June 28, 2021
Question

AxAcroPDFLib.AxAcroPDF.Print()

  • June 28, 2021
  • 1 reply
  • 2937 views

We are displaying a PDF in our WinForm (VB.Net) using an AxAcroPDFLib.AxAcroPDF object by specifying the path to the PDF document using the LoadFile() method.  When we call the .Print() method on this object it pops a print dialog.  Is there any way we can pass in or specify a specific printer (prefereably any printer installed, not just the default printer) and suppress the print dialog box?

This topic has been closed for replies.

1 reply

BarlaeDC
Community Expert
Community Expert
June 29, 2021

Hi,

 

Could you not use PrintAll, the documentation says it does not display a dialog.

Garry5C0CAuthor
Participant
June 29, 2021

Thanks for the response @BarlaeDC , but unfortunately the PrintAll() function just uses the default printer and as far as I can see there is no way to specify a different one (unfortunately, due to the setup, it's not feasable to change default printer before and after the print)

BarlaeDC
Community Expert
Community Expert
July 8, 2021

Hi , not from within the browser control that you are using, although as you are in VB you could just change the printer settings before you use the control, and revert afterwards. The browser control is very limited to what it can do.