Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Location
    india
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    printing the webpage in landscape

    When we use window.print();,it prints the webpage taking the orientation as portrait.But i want it in landscape.We can do this mannually by setting the print format.But i want this to be done programmatically.Is it possible?
    If yes,please help me in doing that.

    thank u.

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Technically, it is possible for IE to utilize print template behaviors (C++).
    The Windows Common Dialog Control and Windows Management Instrumentation provide interfaces for setting print properties from JScript (but are restricted to use with MSHTA, or WSH).
    *this message will self destruct in n-seconds*

  • #3
    New to the CF scene
    Join Date
    Apr 2005
    Location
    india
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile printing webpage

    Hi,

    I am not clear with your answer.Could you explain it more.If possible please make me to understand with javascript code.

    Thank u

  • #4
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Essentially, this has little or nothing do with JavaScript. As far as ActiveX goes, the issue is one of understanding a given COM class--its properties methods and events--and how the host application exposes them, or if it allows them to be... Internet Explorer generally does not. Two instances where it does are through the WebBrowser Control (Print Templates & C++), and MSHTA (via commonDialog, or WMI -- or WebBrowser via WSH, etc.). Basically all limited to non-internet use. There may be other options through .Net/Server-Side technology, however...
    *this message will self destruct in n-seconds*

  • #5
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you use CSS paged media, you can set up the printer to print in landscape.
    *keep it simple (TM)

  • #6
    New to the CF scene
    Join Date
    Apr 2005
    Location
    india
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    printing webpage

    hi JBot,

    I even tried with css2,but i could not make it.so please help me inthis.


    thank u,

  • #7
    Regular Coder
    Join Date
    Nov 2003
    Location
    Vancouver Island Canada
    Posts
    139
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #8
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I read somewhere that only Opera supports "size" orientation...
    *this message will self destruct in n-seconds*


  •  

    Posting Permissions

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