Print a Range from WebBrowser control 
Author Message
 Print a Range from WebBrowser control

Does anyone know how to get the Microsoft WebBrowser control to print
a range of pages when using a Microsoft Word document.

I have a Word document loaded into the WebBrowser control, the
document has 3 pages, I just want to print pages 1 & 2.

The code I have tried so far is -

WebBrowser1.Document.PrintOut Range:=wdPrintRangeOfPages,
Item:=wdPrintDocumentContent, Copies:=1, Pages:="1-2",
PageType:=wdPrintAllPages, Collate:=True, Background:=True,

The above gets accepted as far as the syntax is concerned, but the
WebBrowser control ignores it and prints out the whole document.

I have also tried printing with the following



Mike Bredbury

Tue, 07 Sep 2004 20:05:13 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Printing out a range of pages in WebBrowser control

2. programmatically controlling header/footer on doc printed from WebBrowser control

3. Print range from print dialogue box

4. Printing w/ the WebBrowser control

5. WebBrowser Control, printing....

6. WebBrowser Control, printing....

7. How to customize or suppress header and footer when printing from WebBrowser control

8. WebBrowser Control Printing Problem

9. Printing from WebBrowser control

10. Printing webbrowser control -how

11. Printing to multiple paper trays, with the Webbrowser control

12. Printing a Webbrowser control (also about Richtextboxes)?


Powered by phpBB® Forum Software