Previous in Forum: ASP.net   Next in Forum: ASP.NET
Close
Close
Close
4 comments
Rating: Comments: Nested
Member

Join Date: Oct 2013
Posts: 6

ASP.net Print a Content of Page

10/18/2013 2:19 AM

I have a doubt to print content page of my web application without using crystal report how can i get printed page directly from printer.Give an idea to use a printdialog control to asp.net or any other available solution for print option

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Mar 2012
Location: Out of your mind! Not in sight!
Posts: 4424
Good Answers: 108
#1

Re: ASP.net Print a Content of page

10/18/2013 3:15 AM

http://forums.asp.net/ Did you go here already?

You could develop your own report system and do it that way! Or you could develop a code that directly communicates with your printer driver (not recommended).

__________________
Common Sense Dictates
Register to Reply
Guru

Join Date: Oct 2008
Posts: 42355
Good Answers: 1693
#2

Re: ASP.net Print a Content of Page

10/18/2013 9:14 AM
Register to Reply
Power-User
United States - Member - NE, USA Hobbies - Target Shooting - New Member Engineering Fields - Aerospace Engineering - Engineering Fields - Electromechanical Engineering - New Member

Join Date: Jul 2007
Location: USA
Posts: 199
Good Answers: 6
#4
In reply to #2

Re: ASP.net Print a Content of Page

10/21/2013 8:19 AM

ctr + p

Register to Reply
Active Contributor

Join Date: Sep 2011
Posts: 15
#3

Re: ASP.net Print a Content of Page

10/19/2013 4:50 AM

The reason why you are getting such lame answers is that it is not possible to control the printer directly from the browser without the explicit permission from the user or some serious programming. That latter one involves creating an activeX control that generates the report in some way and then sends it to the default printer.

Personally I would never do it that way. The user doesn't have the choice to print or even select the printer.

It's a lot better to op a new window with the content you need on the printed page and use the print media type in css. There's a lot of things you can do through css, like forcing a new page. It's up to the user to decide if he actually wants to print and the device to print to (can be a PDF printer even).

Register to Reply
Register to Reply 4 comments
Copy to Clipboard

Users who posted comments:

BertVK (1); IdeaSmith (1); JCase (1); lyn (1)

Previous in Forum: ASP.net   Next in Forum: ASP.NET

Advertisement