Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Aug 2000
    Location
    Beaverton, OR
    Posts
    3,267

    Question PRINTING Strategies

    I don't think there has been a discussion yet on printing information of a web page (or a "frozen" PopUp layer) and I'm curious about various methods of how this could be accomplished and with examples of coding that would needed.

    Methods I can think of at the moment (there may be others so please reply) are:

    1- the standard File > Print

    2- A Print button which executes File > Print

    3- A "printable page" button which takes the user to a new page which has a 8.5 x 11 page size.

    4- A "printable page" button which takes the user to a entirely New web document with printer-friendly page sizes and graphics optimally scaled to those pages.


    5- A "printable page" button which takes the user to a PDF document.

    ================================================== ===========

    With number 2-., how would this be done?

    With number 4-., if the link was to Page 36 of the New web document, what would be the syntax and where would it be placed in the button's web properties?...Also, if new document was in a new browser window, is there a way to automatically close that window once the page has been printed?

    JC
    Last edited by jclements; 28 March 2009 at 03:57 PM.

  2. #2

    Default Re: PRINTING Strategies

    Quote Originally Posted by jclements View Post

    With number 2-., how would this be done?

    <a href="JavaScript:window.print();">Print this page</a>

    Or for a button, try;

    <form><input type="button" value=" Print this page "
    onclick="window.print();return false;" /></form>
    Attached Files Attached Files
    Last edited by steve.ledger; 28 March 2009 at 11:28 PM.

  3. #3
    Join Date
    Aug 2000
    Location
    Beaverton, OR
    Posts
    3,267

    Question Re: PRINTING Strategies

    The first example works best because it brings up the standard Print Dialog enabling the user to pick a printer first.

    However, per the attached, the placeholders mess with all any other object that are above them in the stacking order. I probably overlooking something when I set this up, not sure what though.

    Also, there a way to have a user-designed button evoke this script without displaying the text in the placeholder?
    Attached Files Attached Files

  4. #4

    Default Re: PRINTING Strategies

    Quote Originally Posted by jclements View Post
    Also, there a way to have a user-designed button evoke this script without displaying the text in the placeholder?
    Yes, use: javascript:window.print(); in the link to web address field

  5. #5

    Default Re: PRINTING Strategies

    Your example .web file has a broken <form

    It should be:
    <form><input type="button" value=" Print this page "
    onclick="window.print();return false;" /></form>


    You have: <form><input type="button" value=" Print this page "

  6. #6
    Join Date
    Aug 2000
    Location
    Beaverton, OR
    Posts
    3,267

    Default Re: PRINTING Strategies

    Works now. Again, thank you.

    What I don't understand is when printed, even though all the web images are PNGs, there are white backgrounds around the black arrows and Print Page button. Shouldn't they be PNGs with Alpha channels (transparent PNGs)?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Print_Buttons.png 
Views:	293 
Size:	105.6 KB 
ID:	58290  
    Attached Files Attached Files

  7. #7
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: PRINTING Strategies

    Quote Originally Posted by jclements View Post
    What I don't understand is when printed, even though all the web images are PNGs, there are white backgrounds around the black arrows and Print Page button. Shouldn't they be PNGs with Alpha channels (transparent PNGs)?
    They should. But IE7 do not support PNG transparency when printing. Thank you Microsoft!
    Firefox (and all others) should be fine with this.
    John.

  8. #8
    Join Date
    Jan 2009
    Location
    Rochester, Kent, UK
    Posts
    70

    Default Re: PRINTING Strategies

    Extending this, is there a script that will allow all pages within the web to be printed on selection of the print button. This would be very useful for an HTML based report I intend to generate.

  9. #9

    Default Re: PRINTING Strategies

    I'm not aware of a script to do this, but you can print all linked documents from the Print Options of Internet Explorer.

    Treat with caution though

    Also I don't believe this works with javascript links, only normal anchors.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	printlinked_documents.png 
Views:	249 
Size:	18.9 KB 
ID:	58417  

  10. #10
    Join Date
    Dec 2007
    Location
    Sunshine Coast BC, Canada. In a beautiful part of BC's temperate rainforest
    Posts
    9,864

    Default Re: PRINTING Strategies

    I have been experimenting with this, what I want is to have a button on a popup layer that would print just that popup layer. Is this possible? Thanks in advance for any help
    [SIGPIC][/SIGPIC]
    My current Xara software: Designer Pro 365 12.6

    Good Morning Sunshine.ca | Good Morning Sunshine Online(a weekly humorous publication created with XDP and exported as a web document) | Angelize Online resource shop | My Video Tutorials | My DropBox |
    Autocorrect: It can be your worst enema.

 

 

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
  •