launching print preview dialog box in firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unpresedented
    New Member
    • Feb 2010
    • 11

    launching print preview dialog box in firefox

    Hi,
    I have read all questions in this site which relate to this question (i.e. how to launch the print preview dialog box in firefox browser using onclick() event on a button), and found out that it is IMPOSSIBLE to do such thing directly, however, some of people here say you must use css with open pop up and customize the look, but I do not want to do such thing, takes a lot of time and kinda difficult ..
    IS IT REALLY IMPOSSIBLE to do so with firefox browser ?
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    in case it is for a public page ... it is not possible without asking the user for enhanced privileges ... which is not a good idea for a public page, since the user will get a message where he has to agree that your page might do things that could harm his computer and thus you cannot rely on an agreement ... in case it is a intranet-environment where you could control the mozilla-prefs-settings you might use those privileges ... and then you could use Mozilla's nsIWebBrowserPr int interface ...

    kind regards

    Comment

    Working...