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

HTML5 ASP.NET Web Forms with Class Library

2 Answers 156 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 2
Scott asked on 25 Jun 2015, 08:12 PM

Does the new viewer support reports in a class library? I thought this may work, however I am receiving this error:

Type 'Telerik.ReportViewer.Html5.WebForms.ReportSource' in Assembly 'Telerik.ReportViewer.Html5.WebForms, Version=9.1.15.624, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' is not marked as serializable.

 This is the code I am using to display the report. 

Protected Sub CmdReport1Click(sender As Object, e As System.EventArgs) Handles cmdReport.Click
    If Page.IsValid Then
        Dim typeReportSource As New Telerik.ReportViewer.Html5.WebForms.ReportSource
        Dim val As New Telerik.ReportViewer.Html5.WebForms.Parameter
        val.Name = "MYMONTH"
        val.Value = txtRep1Parameter1.Text
        typeReportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.TypeReportSource
        typeReportSource.Identifier = "IntranetReports.Admin.OfficeManager.CeBooking, IntranetReports"
        typeReportSource.Parameters.Add(val)
        ReportViewer1.ReportSource = typeReportSource
    End If
End Sub

Thank you

Scott

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 26 Jun 2015, 11:45 AM
Hi Scott,

Thank you for reporting the issue. It is logged in our system for improvement and your Telerik points are updated.

Until there is a fix, please specify the report source declaratively.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Scott
Top achievements
Rank 2
answered on 26 Jun 2015, 12:03 PM
Thank you for the update, Stef.
Tags
General Discussions
Asked by
Scott
Top achievements
Rank 2
Answers by
Stef
Telerik team
Scott
Top achievements
Rank 2
Share this question
or