• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

AxAcroPDFLib.AxAcroPDF.Print()

New Here ,
Jun 28, 2021 Jun 28, 2021

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?

TOPICS
Windows

Views

755

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 29, 2021 Jun 29, 2021

Copy link to clipboard

Copied

Hi,

 

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 29, 2021 Jun 29, 2021

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)

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2021 Jul 08, 2021

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines