473,769 Members | 6,160 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
1 1436
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****@discuss ions.microsoft. com> wrote in message
news:5E******** *************** ***********@mic rosoft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1601
by: wolfiecat | last post by:
Hello - I am new to this forum. Let me start off by saying that I have never used ASP before. I am working on a project where the site was already created using frames and .aspx pages. I was asked to update pages as well as add new functions. This project is an online training course for internal use only. So, my question is.... I need to put a Print Button on the left frame called "buttons.aspx". I need it to print whatever...
0
1896
by: Niyazi | last post by:
Hi all, This my aspx page first line of code. <%@ Page CodeBehind="index.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="TB.index" %> Than inside head tag I have following script(s) --------------------------------------------------------------------------------------------------------------------- <script language="JavaScript"> //Disable Mouse Right Click Button
2
5086
by: TaeHo Yoo | last post by:
In my current web.config, I have these lines ----------------------------------------------------------- <authentication mode="Forms"> <forms name="frmAuthentication" loginUrl="login.aspx" /> </authentication> ----------------------------------------------------------- How do I need to modify it, so that contactUS.aspx should be accessed without logining in. Thanks a lot in advance,
1
4280
by: Robin Dindayal | last post by:
Does anyone know how I can print a fully rendered .aspx to the server's printer? I know that, if I wanted to print to the client's printer it would be easy (ie. use javascript's window.print()). However, I need to print to the server's printer. I need to print the fully rendered .aspx page from the codebehind .aspx.cs page to the server's printer. I've tried using SHDocVw.InternetExplorer and SHDocVw.WebBrowser but I just can't seem...
3
2119
by: thomas | last post by:
How to specify application default web page in web.config? I mean, default web page, not a login page. Is it possible? Tomasz
2
2236
by: vikramp | last post by:
Hi, I am trying to learn new membership/roles features of ASP.NET 2.0. When we setup forms authentication and specify deny users="?" under authorization, the application asks for login. My problem is: It always looks for Login.aspx page by default. What if the name of my login page is different than Login.aspx? Where do I specify the name of my login page? thanks.
1
2518
by: =?Utf-8?B?THluZGE=?= | last post by:
In my web application, I am using two different CSS based on media. In my Print CSS, I can suppress button, header and ad objects using "Display: None;". However, I need to print an object that does not actually display on the ASPX page. In my Screen CSS, I tried to use "Display: None" for that object (by ID). It will not print based on my various attempts to print that object (by ID) in my Print CSS. I would appreciate suggestions on...
1
1490
by: =?Utf-8?B?THluZGE=?= | last post by:
In my web app, I have two CSS - one for display and one for print. A small copywrite statement needs to print, but does not display on the ASPX page. The ID of the copywrite statement has DISPLAY: NONE in the Display.CSS and it does not appear on the page. However, I cannot get this statement to print even though my Print.CSS has this object defined to print. I would appreciate suggestions on how to define this in CSS so that the object...
6
249
by: Mihai N. | last post by:
For both redhat.com and amamotocross.com the server HTTP header response declare Content-Type to be "text/html; charset=UTF-8" That overrides the meta in the page (according to the web standards) (In my opinion bad standard idea. Why the web server administrator at some ISP should have the power to override what I declare in my file about my file, I don't know!) As for bankofamerica.com and NBA.COM, they are both clearly American, and...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7409
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5299
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.