NetTalk Central

Author Topic: PrintPreview Button  (Read 2762 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1871
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
PrintPreview Button
« 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: PrintPreview Button
« Reply #1 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

Alberto

  • Hero Member
  • *****
  • Posts: 1871
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: PrintPreview Button
« Reply #2 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?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: PrintPreview Button
« Reply #3 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