Posted 17 July 2023, 9:27 pm EST - Updated 18 July 2023, 12:51 am EST
i’m starting to use active Report in page aspx.
I create in my load the report by :
Dim rpt As GrapeCity.ActiveReports.SectionReport = New GrapeCity.ActiveReports.SectionReport()
Dim xtr As System.Xml.XmlTextReader = New System.Xml.XmlTextReader(Server.MapPath(“~\Reports\Example.rpx”))
rpt.LoadLayout(xtr)
xtr.Close()
And now i’d like load also the subreport by script in my report.
I try something as :
Dim MySu As GrapeCity.ActiveReports.SectionReportModel.SubReport = me.Mysubreport
Dim Filename as string = Server.MapPath(“~\Reports\Rpt_subreport.rpx”)
MySu.LoadLayout(Filename)
MySu.DataSource = _ds.tables(“table_data”)
CType(rpt.Sections("PageFooter1").Controls("Sub_report"), SubReport).Report = MySu
but script don’t accept server.
After i try to set filename nmanually btt i have proble with command LoadLayout.
Is correct ‘load’ the subreport in the script in this way ?
Where can i find some example about this for aspx ?