Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I need to print crystal report in mvc application, please help .

What I have tried:

I found some article here : http://www.c-sharpcorner.com/UploadFile/75ceb2/print-crystal-report-at-client-side-printer-in-Asp-Net/, it is for asp web form,
Posted
Updated 22-Sep-16 5:02am

1 solution

The print functionality is purely JavaScript, so regardless if you are using WebForms or MVC, it should work as long it it renders in the browser. You just need to display the report in the page, wrap the report content in a div element just like what the article is showing and then call the Print JavaScript function.
 
Share this answer
 
Comments
Shamseer K 23-Sep-16 23:11pm    
@Vincent
If I export html div to pdf or excel it will be in different size based on browser and device right? Which one is better client side export or server side(crystal report)?
Vincent Maverick Durano 26-Sep-16 10:30am    
I've only tried client-side.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900