Loading Report in Designer from Viewer
Posted: Wed Jan 03, 2018 1:50 pm
My users would like to be able to edit their reports. To do that I have created a designer.aspx page and placed the designer component on it. I have enabled the designer button and it all works to a point. All of this with the code is done on the viewer side page.
What it does not do is load the rendered report into the designer. It passes the name but the report does not load.
I have the reports (.mrt files) in a application folder called reports.
The code is pretty basic but I must be missing something. I have tried setting paths, etc. without success.
I am looking for suggestions to get this working. The code is below.
What it does not do is load the rendered report into the designer. It passes the name but the report does not load.
I have the reports (.mrt files) in a application folder called reports.
The code is pretty basic but I must be missing something. I have tried setting paths, etc. without success.
I am looking for suggestions to get this working. The code is below.
Code: Select all
Protected Sub StiWebViewer1_DesignReport(sender As Object, e As StiReportDataEventArgs)
Dim report As StiReport = e.Report
Dim repName As String = report.ReportName
Response.Redirect("Designer.aspx?report=" + repName)
End Sub