Closed Thread Icon

Preserved Topic: "Printer Friendly" ..? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=20486" title="Pages that link to Preserved Topic: &amp;quot;Printer Friendly&amp;quot; ..? (Page 1 of 1)" rel="nofollow" >Preserved Topic: &quot;Printer Friendly&quot; ..? <span class="small">(Page 1 of 1)</span>\

 
Tikita
Nervous Wreck (II) Inmate

From: Canada
Insane since: Jun 2001

posted posted 04-08-2002 22:15

Ok, couldnt figure out the best spot to post this question, so I'll try it here.

Rescently, I wrote some software in VC++, it does some nifty stuff, but thats not really the point persay. However, for the sake of learning asp.net/etc, I am going to re-write the program as a learning expierence as web application using asp.net, however part of what the program needs to do, is print out reports and mailing lables.

Just wondering, how would I approach this with HTML?

The first page of the report would need to have a header/title to it, then each page would need a small (like, 2 or 3-cm) header/footer on it with the content inbetween (landscape),

also, the mailing lables. I think I could fudge this one out with tables, but has anyone had any expierence in trying to generate print out / reports using HTML?


hlaford
Bipolar (III) Inmate

From: USA! USA! USA!
Insane since: Oct 2001

posted posted 04-09-2002 15:31

I'm not certain that netscape can accomplish this. IE has some print features built in which started to become useful in version 5.5.

There are some events you can use (onbeforeprint and onafterprint) to reformat where needed. The media attribute of the stylesheet can be set to "print" to control fonts, etc, exclusively for print (e.g. using serif fonts for print rather than sans-serif).

http://msdn.microsoft.com/workshop/browser/hosting/printpreview/reference/reference.asp?frame=true

There is also an ActiveX control/plugin called ScriptX http://www.meadroid.com/scriptx/index.htm

« BackwardsOnwards »

Show Forum Drop Down Menu