Currently after we change something in the designer(lets say the font of the title), save the changes and exit from the designer the changes are not applied to the viewer until I generate a new report.
I fixed the problem this way:
Code: Select all
designer.onExit = function( event ) {
this.visible = false;
report = new $window.Stimulsoft.Report.StiReport();
report.load( reportTemplate );
report.regData( "ReportData", "ReportData", $stateParams.data.data );
viewer.report = report;
viewer.visible = true;
};
So my question is if there is a better way to do this, because at the moment everytime someone exit the designer I create a new instance for the report variable. I'm not sure if thats the right way.
Thank you in advance!