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();
}
};
Help not downloading mrt file while using onSaveReport event
-
- Posts: 7
- Joined: Fri Jun 24, 2022 9:04 pm
- Location: México
-
- Posts: 6636
- Joined: Tue Mar 20, 2018 5:34 am
Re: Help not downloading mrt file while using onSaveReport event
Hello,
Please check the release build 2023.4.4
Thank you.
Please check the release build 2023.4.4
Thank you.
-
- Posts: 7
- Joined: Fri Jun 24, 2022 9:04 pm
- Location: México
Re: Help not downloading mrt file while using onSaveReport event
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?
-
- Posts: 6636
- Joined: Tue Mar 20, 2018 5:34 am
Re: Help not downloading mrt file while using onSaveReport event
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Re: Help not downloading mrt file while using onSaveReport event
Any update on this issue please
-
- Posts: 6636
- Joined: Tue Mar 20, 2018 5:34 am
Re: Help not downloading mrt file while using onSaveReport event
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Please send us a sample project that reproduces the issue for analysis.
Thank you.