Windows Develop Bookmark and Share   
 index > Windows Forms General > WebBrowser control - Print method shows Print-settings dialog for PDF file
 

WebBrowser control - Print method shows Print-settings dialog for PDF file

Hi,

I use WebBrowser control to browse WWW. When I call Print method on common HTML page no dialog is shown and page is printed directly to printer, that is OK. But if browser's URL points to a PDF file (eg http://www.test.com/file.pdf) and Print method is called then print-settings window appears. This print-settings comes from some Adobe Acrobat Reader WWW-plugin.

Don't someone know any possibility how to print PDF directly to printer?
Thanks a lot.

Mirek Vanicky

Miroslav Vanicky  Tuesday, September 08, 2009 9:20 AM
Hi Miroslav Vanicky,

Based on my understanding, we can save the pdf file and print it using Acrobat SDK to print it. This is an article:
http://vidmar.net/weblog/archive/2008/04/14/printing-pdf-documents-in-c.aspx.

Regards,
Aland Li

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.

Aland Li  Thursday, September 10, 2009 7:43 AM
Hi Miroslav Vanicky,

Based on my understanding, we can save the pdf file and print it using Acrobat SDK to print it. This is an article:
http://vidmar.net/weblog/archive/2008/04/14/printing-pdf-documents-in-c.aspx.

Regards,
Aland Li

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.

Aland Li  Thursday, September 10, 2009 7:43 AM
We have not tested yet, but article posted by Aland Li shows many solutions.
Miroslav Vanicky  Tuesday, September 15, 2009 6:56 AM

You can use google to search for other answers

Custom Search

More Threads

• Question about how show different display panes
• looping through words in a RichTextBox
• Tab pages on windows forms
• How to set the transparent color for an Animated GIF?
• Video capture in BackgroundWorker
• Changing DescriptionAttribute in Propertygrid at runtime
• Textbox Validating event
• More than one field referencing same table
• Iterating over non-globalization compiled resources
• changing default CurrentUICulture for application