These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hide/Close Acrobat When/After Printing PDF with printdialog VB.NET

Kelvin
Registered: May 22 2007
Posts: 2

In Acrobat 8.0, using VB.NET while printing a PDF file with printdialog , acrobat window shows and does not close after printing.

This behavior was not present with previous versions. Are there any commands that does not show the viewer using printdialog.

CODE :

Dim FrmPDFViewer As New frmPDFViewer()
FrmPDFViewer.pdfViewer.src = file_dir & file_name
FrmPDFViewer.pdfViewer.printWithDialog()

Your comments would be highly appreciated

Thanks in advance

Kelvin

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Reader is designed to "pop up" to ensure that no one uses Acrobat/Reader to start doing unrequested silent printing on the user's computer.
You can use Windows APIs to "hide" it after the fact, but it will first pop up.

This can also be done via Javascript using a Trusted Function for silent printing. Look in the Acrobat JavaScript Reference for more information and samples:
http://www.adobe.com/devnet/acrobat/

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.