SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Always learning viveknarula's Avatar
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question print in javascript

    Hello friends,
    I am using javascript function window.print to print a page. having a link on the page "print page"

    It is working fine.
    I need to set the print properties as default such as page format as "landscape" instead of portrait.

    Secondly my page contents are on the full page. that way while printing the content goes outside the page. how can i set the page size ?

    please help me to solve these problems

    Thanks

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately there is no real client size way to deal with this. The only way you can set these settings is to manually do it using page setup, or an active x/java applet.

    You could possibly use CSS to provide different styles for documents that are going to be printed.



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
  •