Solved

printing document in asp.net

Posted on 2006-11-16
4
1,115 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

762 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

6 Experts available now in Live!

Get 1:1 Help Now