August 8th, 2001, 06:36 PM
Well is it possible to have a button that prints part of a page? how about in landscape mode?
August 8th, 2001, 08:47 PM
I believe you can tell the browser to print (acting as if you clicked the print button) with window.print(). However, you can't specify what to print or in what mode -- it will just bring up your print dialog box. Now, if you want to be sneaky about it, you could build the page in frames, have a teensy frame without scrollbars that isn't apparent to the user, dynamically build the section you want to print in that frame, and print just that frame. However, this method probably isn't foolproof, as I believe IE gives you the option of printing the entire frameset.
August 16th, 2001, 02:33 PM
MSDN seems to imply you can use print templates to print part of a document. Select the portion you want to print and set the selection property to true.
August 16th, 2001, 04:07 PM
Does MSDN happen to mention whether or not this is an MSIE-specific thing or is it an open standard?
August 16th, 2001, 04:20 PM
I would think it is something specific to IE. I don't recall reading whether this was specific to IE or not. They do however state:
Print templates first appeared in Internet Explorer 5.5, and were later improved in Internet Explorer 6.
August 18th, 2001, 10:24 PM
the frame idea is good, i wil try it.
what is MSDN?
August 18th, 2001, 11:35 PM