• We just launched and are currently in beta. Join us as we build and grow the community.

Printing in ASP.NET

vutiye

Tech Growth Hacker
V Rep
0
0
0
Rep
0
V Vouches
0
0
0
Vouches
0
Posts
104
Likes
94
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 200 XP
In windows desktop application it is easy to print a form data for report or other purpose but in asp.net web form it is not easy to print a page.
The printing on client side needs solutions for different conditions
using JavaScript

The simplest way to print a web form is to use client side JavaScript. To print a web page, you can use code like this:

this will print whole page including print button and this can be useful in some case.For making it more professional you can make two version of web page one for the scree and another for the printing purpose. result will be that your print button will open print version in another window and call windows.print() method when page loads

About the author:

PlanetSourceCode.in is a place for all developer providing free source codes, articles, complete projects,complete application in PHP, C/C++, Javascript, Visual Basic, Cobol, Pascal, ASP/VBScript, AJAX, SQL, Perl, Python, Ruby, Mobile Development

 

450,270

322,965

322,974

Top