This is a migrated thread and some comments may be shown as answers.

How to add reference to report dll in IronSpeed project

1 Answer 179 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 10 Nov 2011, 08:14 AM
I created a project using telerik reporting (trial version). I created a Class Library - the application name is QuotationReportClassLibrary - It has one report - Specific Quote.

I am able to preview it.

I use IronSpeed for my asp.net web application.

I copied QuotationReportClassLibrary.dll to the \bin directory of my IronSpeed project.

I also added the following lines to the IronSpeed web.config file -
<add assembly="Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
        <add assembly="Telerik.Reporting, Version=5.1.11.928, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

I created an empty page in IronSpeed - and added the following -

<telerik:reportviewer id="ReportViewer1" report="QuotationReportClassLibrary.SpecificQuote, QuotationReportClassLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" runat="server" style="border:1px solid #ccc;" width="800px" height="1000px"/>

Also the following registration code -

<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

I am able to run the report successfully.

However I want to specify the report in code behind - like 

Dim fs As New QuotationReportClassLibrary.SpecificQuote()

But I get a compile time error - the QuotationReportClassLibrary is not found.

What must I do to rectify my error?


1 Answer, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 10 Nov 2011, 02:57 PM
This does look like it should work. Did you add Telerik.Reporting and Telerik.ReportViewer.WebForms assemblies to bin as well. The references you've added is all good, but would only work if you have them in GAC. Also try adding a standard class file, rebuilt the project and include the updated dll in your iron .. project to see if it can be referenced in code behind. This way you would verify if the problem is related to Telerik Reporting.

Cheers!
Tags
General Discussions
Asked by
Ravi
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or