NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on August 29, 2012, 12:20:19 PM

Title: PrintPreview Button
Post by: Alberto on August 29, 2012, 12:20:19 PM
Hi,
Using Firefox, you can go to the menu/print/preview and see and customize the print.
How can I add a button in my pages which fires that menu item automatically?
Thanks
Title: Re: PrintPreview Button
Post by: Bruce on September 03, 2012, 11:25:44 PM
Create an Other button, set type to button.
On the "OnClick" tab, set
onClick: [JavaScript]
to
'window.print()'

Cheers
Bruce
Title: Re: PrintPreview Button
Post by: Alberto on September 04, 2012, 02:45:06 AM
THnanks Bruce,
That works OK but what I need is fired the print "Preview"
I search the Firefox help but I found nothing.
Any Idea?
Title: Re: PrintPreview Button
Post by: Bruce on September 04, 2012, 02:56:10 AM
The short answer is that there's no way to access the Print Preview functionality directly from the web page.

The slightly longer answer is that it's possible to do it for specific browsers based on that browser. For example if the user is using FireFox, with a plugin that exposes that function, then you can support that. for IE it needs an ActiveX control and so on.

Cheers
Bruce