Page 1 of 1

Printing

PostPosted: Tue Dec 22, 2009 6:35 am
by ajhunt
Hi All, am wishing to print web pages off from in a browser window with a print button but only the first 5 pages (or from and to pages). Presently just does a print but if the document is say 20-30 pages then prints its all but only want to do a few pages to save paper etc. Have anyone come across this before or know a plugin which would now achieve this. i.e. something with a set "page range" for printing. Cheers guys and any suggestions appreciated.

Regards
Anthony

PostPosted: Tue Dec 22, 2009 11:16 am
by Neosoft Support
The BrowserPrint action includes a print preview option. For example:

BrowserPrint "WebBrowser1" "PrintPreview"

The preview's print button gives you an opportunity to select which pages you want to print.

Printing

PostPosted: Tue Dec 22, 2009 9:58 pm
by ajhunt
Thanks Support. Have just tried that option but am seeking no intervention from a user - just clicking a Print Button and automatically printing 5 pages even if the webpage is a PDF with 50 pages. Thanks for the support and help.

Regards
Anthony

PostPosted: Wed Dec 23, 2009 11:01 am
by Neosoft Support
There may be a way to do it with JavaScript. For example:

BrowserExecScript "WebBrowser1" "window.print()" "JScript"

PostPosted: Wed Dec 23, 2009 12:13 pm
by Gaev
Anthony:

a) Generally, there are no automated interfaces related to print functions ... imagine navigating to www.IdiotsRUs.com ... and the web page automatically starts to print on your printer.

b) In your case, the rendering of the PDF document would be "outsourced" by the Browser to the Acrobat Reader/PlugIn ... so printing any part of it would really be handled from within this program.