I have a view with HTML tables, filled with information that I want to print in ASP.NET MVC 4 and C#.
I don't know the actual code that prints the document, any help will be appreciated
Well you have two choices
Either use JS
<a href="javascript:window.print()">Click to Print This Page</a>
Or print to a PDF using Action Result in MVC
For the JS option you will want to build a print css file so as to best render the page during printing, also hide some element that you don't need to appear - menus for example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With