But today WebViewerFx stops working and is not displaying any data and displays only a blank page.
The other viewers are working fine. I tried to repair installation but not solved.
The report file is the same, the data and data source are also the same.
The code is as follows. When I want to test a viewer I simply comment or not the viewer I want to test.
Code: Select all
StiReport report = new StiReport();
report.Load(this.Server.MapPath("~/Reports/Test.mrt"));
//Get data
var reports = new Reports();
Type thisType = reports.GetType();
object instance = Activator.CreateInstance(thisType);
MethodInfo theMethod = thisType.GetMethod(itemRelatorio.NomeMetodoRelatorio);
var parameters = new object[] { reportArgs };
IList dataSource = (IList)theMethod.Invoke(instance, parameters);
//Register data
report.RegBusinessObject("DataSet1", dataSource);
//View report
StiWebViewer1.Visible = true;
StiWebViewer1.Report = report;
//StiMobileViewer1.Visible = true;
//StiMobileViewer1.Report = report;
//StiWebViewerFx1.Visible = true;
//StiWebViewerFx1.Report = report;
Code: Select all
<cc1:StiWebViewer ID="StiWebViewer1" runat="server" Visible="false"/>
<cc2:StiMobileViewer ID="StiMobileViewer1" runat="server" Visible="false"/>
<cc3:StiWebViewerFx ID="StiWebViewerFx1" runat="server" Visible="false"/>