Printing in ASP.NET

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

Comments

Add new comment