How do I print the contents of a Window without the URL and Page number?

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

    How do I print the contents of a Window without the URL and Page number?

    Hi all,
    I hope there is a simple way to do this, but I haven't come across it yet. I
    have a page that loads and then uses JavaScript:
    <body onload="setMyCo ntent('<%=param %>'); window.print(); ">

    This just formats the HTML according to user input on the calling page and
    then prints the window.
    However, the printed page always comes out with a page number at the top and
    the URL at the bottom.
    Is there any way to get just the HTML in the window to print?

    Thanks for any answers...


  • David Wier

    #2
    Re: How do I print the contents of a Window without the URL and Page number?

    AFAIK, these are manipulated within IE itself

    David Wier

    http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
    bloated markup


    "John Kotuby" <jkotuby75@comc ast.netwrote in message
    news:evWJVS3uIH A.2064@TK2MSFTN GP05.phx.gbl...
    Hi all,
    I hope there is a simple way to do this, but I haven't come across it yet.
    I have a page that loads and then uses JavaScript:
    <body onload="setMyCo ntent('<%=param %>'); window.print(); ">
    >
    This just formats the HTML according to user input on the calling page and
    then prints the window.
    However, the printed page always comes out with a page number at the top
    and the URL at the bottom.
    Is there any way to get just the HTML in the window to print?
    >
    Thanks for any answers...
    >

    Comment

    • Eliyahu Goldin

      #3
      Re: How do I print the contents of a Window without the URL and Page number?

      Yes, it should be a client setting. It should be possible to turn it off,
      but it will have to be done on evey client machine.

      --
      Eliyahu Goldin,
      Software Developer
      Microsoft MVP [ASP.NET]




      "David Wier" <dw@dw.comwro te in message
      news:%23a0M0n3u IHA.3604@TK2MSF TNGP03.phx.gbl. ..
      AFAIK, these are manipulated within IE itself
      >
      David Wier

      http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
      no bloated markup
      >
      >
      "John Kotuby" <jkotuby75@comc ast.netwrote in message
      news:evWJVS3uIH A.2064@TK2MSFTN GP05.phx.gbl...
      >Hi all,
      >I hope there is a simple way to do this, but I haven't come across it
      >yet. I have a page that loads and then uses JavaScript:
      ><body onload="setMyCo ntent('<%=param %>'); window.print(); ">
      >>
      >This just formats the HTML according to user input on the calling page
      >and then prints the window.
      >However, the printed page always comes out with a page number at the top
      >and the URL at the bottom.
      >Is there any way to get just the HTML in the window to print?
      >>
      >Thanks for any answers...
      >>
      >
      >

      Comment

      Working...