2
Answers

Print in C# with ASP.NET MVC

Adriano Costa

Adriano Costa

9y
269
1
Hi!
 
I need to know how to print using C#, in application web, Asp.NET MVC.
 
Example:
I have a app in ASP.NET MVC 4 or 5, ok!
 
But, exists a button (<button id="idPrint" name="Print">) ;
 
So, how to print, i don´t use "window.print()" , please.
 
Thanks! 
Answers (2)
0
Sourabh Somani

Sourabh Somani

NA 56.1k 4.3m 9y
This Also print CSS 
 
window.print() method doesn't print CSS Style
 
0
Sourabh Somani

Sourabh Somani

NA 56.1k 4.3m 9y
Use Following Code 
 
https://sites.google.com/a/aspdotnet-suresh.com/aspdotnetsuresh/home/Print%20DIV%20Content%20using%20jQuery.zip?attredirects=0