PDA

View Full Version : How to make a printer friendly page with java??



malsyriani@yahoo.com
11-10-2004, 12:07 AM
I need your help to make a printer friendly page with java?? Thanks

cr3ative
11-10-2004, 06:26 PM
What do you mean?

cr3ative

malsyriani@yahoo.com
11-10-2004, 06:51 PM
I want that the visitors of my homepage to have a printer friendly version.

cr3ative
11-10-2004, 07:01 PM
Javascript can't really do that. You could just hyperlink to a printer-friendly page like ebuyer.com or dabs.com do on their product pages; these are just separate html files which are a little more sparse on layout.

cr3ative

Nate_Bro
11-14-2004, 10:44 PM
well, there is a way, but it would be a whole lot Ez'r if you just made a separate HTML or a TEXT file, other wise you have to do a lot, i mean a lot, of document.write, you would have to write your page twice in it, once is hard, but twice! that would take forever! lol
I use CGI for mine, its a lot less writing, but its kinda hard to program if you don't know what you are doing

cr3ative
11-15-2004, 06:17 PM
Ditto.

document.write 'ing would be a heck of a project for each webpage and every tiny change you make, whereas CGI or similar programming would just pretty much do itself once set up.

cr3ative

Konstantin
11-29-2004, 01:02 PM
I want that the visitors of my homepage to have a printer friendly version.


You may convert whole page, that your need in image format. Your users can print it on any operating system. It's great way for compatibility your pages.

I use Universal Document Converter (http://www.print-driver.com) for converting.

cr3ative
11-29-2004, 02:13 PM
:/ That's a bit of a kick in the shins for dialup users though...

I still pity them, I only got broadband a year or so ago. :)

cr3ative

Konstantin
12-02-2004, 06:55 AM
Web page in GIF format, not so big. And if I understood correctly, users need to see not all pages.. but few of it? when it's good solution

eagle00789
12-08-2004, 03:18 PM
you are just not thinking simple enough. i did it with just a singe css file extra. define in the header the following (ofcourse, change it where needed):
<LINK REL=StyleSheet HREF="./style/style.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="./style/print.css" TYPE="text/css" MEDIA=print>
Create a button (or link) with the following code:
<input type="button" name="Print" value="Print" onclick="javascript:window.print();
"> that's it. check www.decomputeur.nl and then the FAQ. click on any link on the right side and then the print-button to see it in action. Below is my normal .css file
body {
background-color: #00ff99;
background-image: none;
font-family: arial, verdana, 'sans serif';
}
a:link {
}
a:visited {
}
img {
border: 0px;
}and this is my print.css file:
body {
background-color: White;
background-image: none;
font-family: arial, verdana, 'sans serif';
}
a:link {
color: black;
}
a:visited {
color: black;
}
img {
border: 0px;
}

ustaadmedia
10-15-2006, 02:00 AM
I need your help to make a printer friendly page with java?? Thanks

olso I need how to make send friendaly page
\
thanks