Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to make a printer friendly page with java??

  1. #1
    Join Date
    Sep 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to make a printer friendly page with java??

    I need your help to make a printer friendly page with java?? Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What do you mean?

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Sep 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I want that the visitors of my homepage to have a printer friendly version.

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Sep 2004
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  6. #6
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  7. #7
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by malsyriani@yahoo.com
    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 for converting.

  8. #8
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    :/ 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
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  9. #9
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  10. #10
    Join Date
    Dec 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    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):
    Code:
    <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:
    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
    Code:
    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:
    Code:
    body {
      background-color: White;
      background-image: none;
      font-family: arial, verdana, 'sans serif'; 
    }
    a:link {
      color: black;
    }
    a:visited {
      color: black;
    }
    img {
      border: 0px;
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •