?
Solved

Firefox Print Preview

Posted on 2005-04-26
6
Medium Priority
?
668 Views
Last Modified: 2008-02-01
I figured out a way to launch IE's print preview using Javascript.  Is there a way to do this with Firefox?
0
Comment
Question by:ardolino
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

by:davidlars99
ID: 13870279
that's for IE with other option as well...

function PrintPreview(){
     var OLECMDID = 7;  // 6= print;  7=print preview;  1= open window;  4=Save As
     var PROMPT = 1;     //  2= DON'T PROMPT USER
     var WebBrowser = "";
     document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
     WebBrowser1.ExecWB(OLECMDID, PROMPT);
     WebBrowser1.outerHTML = "";
}

and I don't think that other browsers are capable of doing similar, you have to do it manualy by CSS

http://www.webmasterworld.com/forum83/6276.htm
0
 

Author Comment

by:ardolino
ID: 13870966
this link (http://www.webmasterworld.com/forum83/6276.htm) requires a password.  Can you please copy and paste or type in the relevant information here?
0
 
LVL 13

Expert Comment

by:davidlars99
ID: 13871171
here it is, I moved it to my server

http://www.frozendev.com/sample.htm
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ardolino
ID: 13875597
I don't see how your example demonstrates how to launch the print preview Window in Firefox.  It talks about styles, css, and media types.  I already know how to do that.  
0
 
LVL 13

Accepted Solution

by:
davidlars99 earned 500 total points
ID: 13875911
then I came to the conclusion that it's impossible to do! there's absolutely no information about that!
0
 

Author Comment

by:ardolino
ID: 13877196
Ok, well, if you cannot do it, you cannot do it.   Thanks for the help.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question