Help not downloading mrt file while using onSaveReport event

Stimulsoft Reports.JS discussion
Post Reply
rgonzalez26
Posts: 7
Joined: Fri Jun 24, 2022 9:04 pm
Location: México

Help not downloading mrt file while using onSaveReport event

Post 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();
}
};
Lech Kulikowski
Posts: 6832
Joined: Tue Mar 20, 2018 5:34 am

Re: Help not downloading mrt file while using onSaveReport event

Post by Lech Kulikowski »

Hello,

Please check the release build 2023.4.4

Thank you.
rgonzalez26
Posts: 7
Joined: Fri Jun 24, 2022 9:04 pm
Location: México

Re: Help not downloading mrt file while using onSaveReport event

Post 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?
Lech Kulikowski
Posts: 6832
Joined: Tue Mar 20, 2018 5:34 am

Re: Help not downloading mrt file while using onSaveReport event

Post by Lech Kulikowski »

Hello,

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

Thank you.
nitesh
Posts: 6
Joined: Tue May 12, 2020 5:09 pm

Re: Help not downloading mrt file while using onSaveReport event

Post by nitesh »

Any update on this issue please
Lech Kulikowski
Posts: 6832
Joined: Tue Mar 20, 2018 5:34 am

Re: Help not downloading mrt file while using onSaveReport event

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply