Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi,

I want to make crystal reports with report viewer in .chtml page it is possible with pdf but
not with report viewer.

suggest me if you have any idea.

I work on razor view engine,mvc 4, c# ,.net
Posted
Comments
thatraja 10-Mar-14 8:31am    
/* it is possible with pdf but not with report viewer. */
Not clear, explain clearly
Mayank Engineer 10-Mar-14 8:36am    
rptDoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat,System.Web.HttpContext.Current.Response, false, "crReport");

This code generate reports in pdf but i want to generate in report viewer

I never used Crystal reports in MVC but I found this detail, check it out
Using Reportviewer Control, within a Razor view, in the MVC3 Framework[^]
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
Comments
Mayank Engineer 10-Mar-14 8:49am    
1. Create an pdf file on fly from your control class Or

2. Create a aspx page from where you can show your report using report viewer.

I do this both way but i can't use this way because my whole project do in razor(.chtml) page
so my first priority is work on .chtml page

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