Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Hi,
Could you not use PrintAll, the documentation says it does not display a dialog.
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
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.