Exporting to PDF from .mrt Template data relationships not working

Stimulsoft Reports.NET discussion
Lech Kulikowski
Posts: 6291
Joined: Tue Mar 20, 2018 5:34 am

Re: Exporting to PDF from .mrt Template data relationships not working

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue. Could you explain how to reproduce the issue?

Thank you.
eduardo.neto
Posts: 13
Joined: Wed Aug 03, 2022 6:36 pm

Re: Exporting to PDF from .mrt Template data relationships not working

Post by eduardo.neto »

For example in attach. The first report(the-right-report) is the right structure of the report as expected, the second report(the-wrong-report) is the wrong one. The first report(the-right-report), is generated via angular application, the second report(the-wrong-report) is by the code sample that i sent that im trying to make it work as expected. The data used to generate is the same.
Btw, In the sample project, when u call the endpoint, the report will be generated as pdf in the root of the project.
Sample project in attachment.

Thanks
Attachments
the-right-report.pdf
(68.43 KiB) Downloaded 141 times
the-wrong-report.pdf
(34.3 KiB) Downloaded 131 times
Lech Kulikowski
Posts: 6291
Joined: Tue Mar 20, 2018 5:34 am

Re: Exporting to PDF from .mrt Template data relationships not working

Post by Lech Kulikowski »

Hello,

We need some time to investigate the issue. We will let you know about the result.

Thank you.
eduardo.neto
Posts: 13
Joined: Wed Aug 03, 2022 6:36 pm

Re: Exporting to PDF from .mrt Template data relationships not working

Post by eduardo.neto »

Hello Lech Kulikowski.
Does you guys found any solution for this case?
do you guys have a specialized techinical support that we can contact?

Thanks a lot for the help!
Lech Kulikowski
Posts: 6291
Joined: Tue Mar 20, 2018 5:34 am

Re: Exporting to PDF from .mrt Template data relationships not working

Post by Lech Kulikowski »

Hello,

After adding all data sources, you should check and add all relations that were used in the original report.

Thank you.
Attachments
Screenshot 2023-12-24 135733.png
Screenshot 2023-12-24 135733.png (581.09 KiB) Viewed 1157 times
eduardo.neto
Posts: 13
Joined: Wed Aug 03, 2022 6:36 pm

Re: Exporting to PDF from .mrt Template data relationships not working

Post by eduardo.neto »

Lech Kulikowski wrote: Sun Dec 24, 2023 12:58 pm Hello,

After adding all data sources, you should check and add all relations that were used in the original report.

Thank you.
Hello Lech.
So doing like this its not the right way? Do i need to add manually the relations then?
The strange part is that it add automatically the relations to the Dictionary.Relations when i do like this.

Code: Select all

report.RegData("filtros", data.Tables["filtros"]);
report.RegData("relatorio", data.Tables["relatorio"]);
report.RegData("relatorio_movimentacoes", data.Tables["relatorio_movimentacoes"]);
report.RegData("relatorio_pedidos", data.Tables["relatorio_pedidos"]);
report.RegData("relatorio_pedidos_produtos", data.Tables["relatorio_pedidos_produtos"]);
Do you have a sample how i can add the relations please?
Lech Kulikowski
Posts: 6291
Joined: Tue Mar 20, 2018 5:34 am

Re: Exporting to PDF from .mrt Template data relationships not working

Post by Lech Kulikowski »

Hello,

Json data that is used in your project only with one relation.

Thank you.
Attachments
Screenshot 2023-12-27 170324.png
Screenshot 2023-12-27 170324.png (762.5 KiB) Viewed 970 times
Post Reply