how to set window.print() property?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zhaoyun

    how to set window.print() property?

    Hi All
    I wanna to remove all the header and footer of the print out of my webpage.
    How can I set the property of the print function in IE automatically using
    JavaScript?

    Thank you! =)


  • Stuart Palmer

    #2
    Re: how to set window.print() property?

    Think you have to rewrite the page without the footer/header and then
    window.print. Window.print just prints the page, you can tell it what to
    add/remove when printing.

    This is a far as I understand.

    Stu

    "zhaoyun" <zhaoyun@sangok umusou.com> wrote in message
    news:bj91br$457 49@imsp212.netv igator.com...[color=blue]
    > Hi All
    > I wanna to remove all the header and footer of the print out of my[/color]
    webpage.[color=blue]
    > How can I set the property of the print function in IE automatically using
    > JavaScript?
    >
    > Thank you! =)
    >
    >[/color]


    Comment

    • zhao yun

      #3
      Re: how to set window.print() property?

      Thanks for your advice.
      I think it is only possible to do this using ActiveX through script.

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...