Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printer friendly page...

Status
Not open for further replies.

meenakshidhar

Programmer
Oct 19, 2001
77
MY
Hi friends..
i want to display a printer friendly page of my webpage...
when i take printout of the mypage
1. On top right side- it's showing "Page1 of 1"
2. On top leftside it's showing "the title of my webpage"
3. At the left side of the bottom it's showing "the url of the webpage"

i don't want all the three things to be displayed...
urgent help needed..

Regards
Meenakshi Dhar
 
I dont believe you can do much about 1) and 3) as these are settings inaccessible by HTML or Javascript. The only way I know to prevent the page title from displaying is not to have a <TITLE>page title</TITLE> on your printer friendly page.

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
thanks FesterSXS...but i need to remove 1) and 3) also...is there any way to remove these two also...
 
one more thing...my table borders are not visible in the printouts...i exactly want the same html webpage in my printouts...
 
You dont have any control over the set up of the page for printing within the browser.

There is a faq on the subject that suggest using excel on the client - but this cannot be done completely programatically.

 
Extremely easy method for creating reports for use to print via a web browser is to Use MS Word 2003 (I know this seems like cheating but it works)!!

Create a blank document, and put easy to identify words in the places you want your asp output to go (For example, open the header and type in <DATE HERE> where you want it) them. Save the document as an HTML page, then rename the document to have the extension ".asp"

If you then open the document in notepad, find the words, and replace them with variables you may have passed the page, you will find that they print in the correct location.

Word 2003 documents saved as web pages keeps page breaks too! An exceptionally easy way to get page breaks where you want them in a report!

Hope this helps!
 
The header and footer is a browser setting in IE (File > Page Setup > Headers & Footers.

So no there is nothing you can do about this apart from tell users to change their browser setting which is obviously ridiculous. More to the point why do you want to remove this? If you want a page truly for printing then you should create a pdf version.

Assuming that you are using CSS - create seperate CSS for print using @media types.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top