I want to take the print of a page from Interent Explorer. But ever time it shows page title at the top and url at the bottom is there any way to remove both programmatically in ASP.
Is there any way to remove header and footer from the IE print out via ASP?
No, you can't remove this with server-side code. You have to go to File, Page Setup in the IE browser and clear out the header and footer fields.
Reply:Use this site to understand coding of javascript into your pages in ASP.
http://www.htmlgoodies.com/beyond/javasc...
May be this will help
http://www.devguru.com/technologies/java...
here they show how to include or exclude menubar item
http://www.trinity.edu/rjensen/java/swin...
winname = name of new window
toolbar = 1 browser toolbar with Back and Forward buttons
status = yes status line
menubar = yes menuline
scrollbars = yes scrollbars
resizable = 1 means that resize handles exist for a window
width =400 = number of pixels wide
height = 320 = number of pixels high
The exact way to do this turning off headers and footers from printing is.
You also have some control over the way a Web page prints when you use the print function in your Web browser. Click on File, and then choose Page Setup. The choices here are limited, but you do get to pick the paper orientation, the margins and the paper size. This is also where you can set up your header and footer for printing Web pages. Whenever you print a Web page, the header appears on the top of the page and the footer appears on the bottom. The Header and Footer boxes are used to specify the information to be printed by using the text and variables. Unfortunately, the header and footer information is entered in cryptic programming-like language. In Internet Explorer, the typical header looks like this: %26amp;w%26amp;bPage %26amp;p of %26amp;P. This string of information prints the title of the Web page on the left hand side and Page x of y on the right side (where x is the page number and y is the total number of pages.) This is a typical footer %26amp;u%26amp;b%26amp;d that prints the URL address of the Web page on the left hand side and the date on the right. If you looked closely at the header string, you might have figured out what some of the variables stand for. Here is a more complete list:
http://www.aarp.org/learntech/computers/...
I read an article where we can try to block the user from viewing the HTML code of the webpage.
http://www.angelfire.com/fl5/html-tutori...
To accomplish such things for real is to access the menu items directly.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment