This question is locked. New answers and comments are not allowed.
Ziaur Rahman
Top achievements
Rank 1
Ziaur Rahman
asked on 20 Jan 2010, 12:50 PM
Can I use Teleric Reporting Tools for MVC project. If So then text me where I can find sample project.
5 Answers, 1 is accepted
0
Hi Ziaur Rahman,
You can check this forum thread which explains how to use the reporting viewer inside an ASP.NET MVC application.
Regards,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can check this forum thread which explains how to use the reporting viewer inside an ASP.NET MVC application.
Regards,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ziaur Rahman
Top achievements
Rank 1
answered on 20 Jan 2010, 02:31 PM
Actually I implemented it but being disapointed by attach image -> mvc_telericreportimplementation.gif.
Anyway , Please share some knowledge about your control in mvc project.
. Actually I need full page example. What type of page he has used. I used wedform in mvc project. my full page code. Your html editor is stupid enough to type my cs page code. |
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TelericReport.aspx.cs" Inherits="Runrent.TelericReport" %> |
| <%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" |
| Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| <script runat="server"> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| //rvReport.Report = ViewData.Model; |
| string reportName = Server.UrlDecode(this.Request.QueryString["ReportName"]); |
| reportName = "Telerik.Reporting.Examples.CSharp.Report1, CSharp.ReportLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"; |
| if (!string.IsNullOrEmpty(reportName)) |
| { |
| Type reportType = Type.GetType(reportName); |
| Telerik.Reporting.IReportDocument report = (Telerik.Reporting.IReportDocument)Activator.CreateInstance(reportType); |
| this.rvReport.Report = report; |
| this.Page.Title = "telerik Report Viewer - " + reportType.Name; |
| } |
| } |
| </script> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:ReportViewer ID="rvReport" runat="server"> |
| </telerik:ReportViewer> |
| </div> |
| </form> |
| </body> |
| </html> |
0
Accepted
Hello Ziaur Rahman,
Probably the HTTP handler of the report viewer is not registered in web.config. Find attached a working demo showing how to use the report viewer in ASP.NET MVC application.
Regards,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Probably the HTTP handler of the report viewer is not registered in web.config. Find attached a working demo showing how to use the report viewer in ASP.NET MVC application.
Regards,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ziaur Rahman
Top achievements
Rank 1
answered on 21 Jan 2010, 06:13 AM
| -------------------------------------------------------------- |
| I am getting error. When I am running the project. |
| Pls make a quick reply. |
| Thanks for ur solution. |
| Server Error in '/' Application. |
| Configuration Error |
| Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. |
| Parser Error Message: Could not load file or assembly 'Telerik.ReportViewer.WebForms, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified. |
| Source Error: |
| Line 46: <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> |
| Line 47: |
| Line 48: <add assembly="Telerik.ReportViewer.WebForms, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> |
| Line 49: <add assembly="Telerik.Reporting, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> |
| Line 50: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> |
| Source File: G:\Test Projects\TestMVCReport\MvcApplication3\web.config Line: 48 |
| Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.ReportViewer.WebForms, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' could not be loaded. |
| === Pre-bind state information === |
| LOG: User = BRAINSTA-50\admin |
| LOG: DisplayName = Telerik.ReportViewer.WebForms, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=a9d7983dfcc261be |
| (Fully-specified) |
| LOG: Appbase = file:///G:/Test Projects/TestMVCReport/MvcApplication3/ |
| LOG: Initial PrivatePath = G:\Test Projects\TestMVCReport\MvcApplication3\bin |
| Calling assembly : (Unknown). |
| === |
| LOG: This bind starts in default load context. |
| LOG: Using application configuration file: G:\Test Projects\TestMVCReport\MvcApplication3\web.config |
| LOG: Using machine configuration file from D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. |
| LOG: Post-policy reference: Telerik.ReportViewer.WebForms, Version=3.2.9.1104, Culture=neutral, PublicKeyToken=a9d7983dfcc261be |
| LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/29b6db68/62833d12/Telerik.ReportViewer.WebForms.DLL. |
| LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/29b6db68/62833d12/Telerik.ReportViewer.WebForms/Telerik.ReportViewer.WebForms.DLL. |
| LOG: Attempting download of new URL file:///G:/Test Projects/TestMVCReport/MvcApplication3/bin/Telerik.ReportViewer.WebForms.DLL. |
| LOG: Attempting download of new URL file:///G:/Test Projects/TestMVCReport/MvcApplication3/bin/Telerik.ReportViewer.WebForms/Telerik.ReportViewer.WebForms.DLL. |
| LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/29b6db68/62833d12/Telerik.ReportViewer.WebForms.EXE. |
| LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/29b6db68/62833d12/Telerik.ReportViewer.WebForms/Telerik.ReportViewer.WebForms.EXE. |
| LOG: Attempting download of new URL file:///G:/Test Projects/TestMVCReport/MvcApplication3/bin/Telerik.ReportViewer.WebForms.EXE. |
| LOG: Attempting download of new URL file:///G:/Test Projects/TestMVCReport/MvcApplication3/bin/Telerik.ReportViewer.WebForms/Telerik.ReportViewer.WebForms.EXE. |
0
Ziaur Rahman
Top achievements
Rank 1
answered on 21 Jan 2010, 07:25 AM
Thanks. Problem was dll version. Its version 3.2.9.1211 but I got it version 3.2.9.1104.
Anyway I am happy for time being.