467,222 Members | 1,488 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,222 developers. It's quick & easy.

Can i specify how much of an aspx page should print?

Hi. I have an aspx page which displays data on about the top 1/3 of the
page, and the remaining 2/3 of the page is blank. The page is formatted so
that my users can print the page to special-sized labels of the same
dimensions. However, whenever my users print, Internet Explorer sends the
entire page (including the blank 2/3 of the page) to the printer, and
therefore the printer prints out 1 label (containing the contents of the
screen), and 2 blank labels. Is there a way that I can specify that Internet
Explorer STOP printing past a certain point on the aspx page? Thanks.
Nov 19 '05 #1
  • viewed: 1273
Share:
1 Reply
This is a client side issue, its not really related to asp.net - but you
could wrap everything in print specific CSS tags so at print time the bits
of the page you dont require dont technically exists for print media. Start
reading here - http://www.yourhtmlsource.com/styles...ediatypes.html

More often than not however, I have seen a round trip back to the server to
recollect the relelvent page parts in a new window being a preferred
approach as its ultimately more controllable.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"MrMike" <Mr****@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
Hi. I have an aspx page which displays data on about the top 1/3 of the
page, and the remaining 2/3 of the page is blank. The page is formatted so that my users can print the page to special-sized labels of the same
dimensions. However, whenever my users print, Internet Explorer sends the
entire page (including the blank 2/3 of the page) to the printer, and
therefore the printer prints out 1 label (containing the contents of the
screen), and 2 blank labels. Is there a way that I can specify that Internet Explorer STOP printing past a certain point on the aspx page? Thanks.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Niyazi | last post: by
1 post views Thread by Robin Dindayal | last post: by
2 posts views Thread by vikramp | last post: by
1 post views Thread by =?Utf-8?B?THluZGE=?= | last post: by
1 post views Thread by =?Utf-8?B?THluZGE=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.