Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

HTML5 ASP.NET Web Forms with Class Library

$
0
0

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. 

ProtectedSubCmdReport1Click(sender AsObject, e AsSystem.EventArgs) HandlescmdReport.Click
    IfPage.IsValid Then
        DimtypeReportSource AsNewTelerik.ReportViewer.Html5.WebForms.ReportSource
        Dimval AsNewTelerik.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
    EndIf
EndSub

Thank you

Scott


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>