Solved

printing document in asp.net

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to count occurrences of each item in an array.

803 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