Page 1 of 1

Help not downloading mrt file while using onSaveReport event

Posted: Tue Nov 28, 2023 9:20 pm
by rgonzalez26
Greetings.

Im using the following code to save the reports using a service(await this.mObjViewer.guardarReportes(urlGuardaReportes)) using the onSaveReport event, but this also triggers a download of the mrt file to the client browser. Is any way to dissable the dowload and only keep my server save process? Really appreciate your help.

this.designer.report = new Stimulsoft.Report.StiReport();
this.designer.onSaveReport = async (e) => {
try {
this.mostrarWaitDialog('MENSAJES.WAIT.GUARDANDO_DATOS');
const urlGuardaReportes: ClsReporte[] = [];
const urlGuardaReporte: ClsReporte = new ClsReporte();
report = e.report.saveToJsonString();
urlGuardaReporte.Nombre = this.dataReporte.Nombre;
urlGuardaReporte.Contenido = report;
urlGuardaReportes.push(urlGuardaReporte);
await this.mObjViewer.guardarReportes(urlGuardaReportes);
this.mostrarQuestion(async (resp: boolean) => {
if (resp) {
this.dmReportes.quitarTabComponente(EnumMenuOpReportes.Designer);
}
}, 'MENSAJES.QUESTION.REPORTE_GUARDADO_EXITOSO');
} catch (e) {
this.mostrarMsg(e.message, 'error');
} finally {
this.cerrarWaitDialog();
}
};

Re: Help not downloading mrt file while using onSaveReport event

Posted: Wed Nov 29, 2023 3:46 pm
by Lech Kulikowski
Hello,

Please check the release build 2023.4.4

Thank you.

Re: Help not downloading mrt file while using onSaveReport event

Posted: Wed Dec 06, 2023 10:50 pm
by rgonzalez26
Thanks for the reply. I´d upgraded the stimulsoft scripts for the 2023.4.4 version and I´m having the same issue. There´s no way to avoid the downloading?

Re: Help not downloading mrt file while using onSaveReport event

Posted: Wed Dec 06, 2023 11:34 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: Help not downloading mrt file while using onSaveReport event

Posted: Tue Jan 23, 2024 1:46 pm
by nitesh
Any update on this issue please

Re: Help not downloading mrt file while using onSaveReport event

Posted: Tue Jan 23, 2024 9:58 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.