Solved

printing document in asp.net

Posted on 2006-11-16
4
1,182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

717 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