Solved

printing document in asp.net

Posted on 2006-11-16
4
1,131 Views
Last Modified: 2009-02-11
hi experts,
   I have completed my asp.net web application using vb.net which prints a document at the client side.  It's working fine, but the problem whenver i give the print command by default it prints the header ie the name of my asp.net form & footer, the whole querystring that appears in the address bar.  I don't want these things, How to avoid this?


plz help
 
0
Comment
Question by:s_monani
4 Comments
 
LVL 6

Accepted Solution

by:
bigphuckinglizard earned 250 total points
ID: 17964087
file menu -> page setup, remove the options in header and footer.
0
 
LVL 6

Assisted Solution

by:Samer Chidiac
Samer Chidiac earned 250 total points
ID: 17967202
This would work,

But Keep in mind that this will work on all the webpages that the user is browesing.. and it's a USER specific ... because there's no client script (that i know about of course) that would dynamically disable the display of header and footers..

but if your application is imporant and is Sql Server Database driven.. you should consider incorporating a reporting tool.. such as Sql Server Reporting services or other nice reporting tools/controls that would allow the prinitng to be more smooth and you can even export your documents to excel, html, pdf.. etc


That's my opinion,

Cheers,
SC

===================
Samer Chidiac
Microsoft MVP - ASP/ASP.net
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now