Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Kotuby - 21 May 2008 20:01 GMT
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="setMyContent('<%=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 - 21 May 2008 20:36 GMT
AFAIK, these are manipulated within IE itself

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

> Hi all,
> I hope there is a simple way to do this, but I haven't come across it yet.
[quoted text clipped - 8 lines]
>
> Thanks for any answers...
Eliyahu Goldin - 22 May 2008 09:49 GMT
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.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> AFAIK, these are manipulated within IE itself
>
[quoted text clipped - 15 lines]
>>
>> Thanks for any answers...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.