Page 2 of 2

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

Posted: Mon Nov 20, 2023 7:56 pm
by Lech Kulikowski
Hello,

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

Thank you.

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

Posted: Tue Nov 21, 2023 12:02 pm
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

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

Posted: Fri Nov 24, 2023 12:17 am
by Lech Kulikowski
Hello,

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

Thank you.

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

Posted: Thu Dec 21, 2023 12:27 pm
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!

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

Posted: Sun Dec 24, 2023 12:58 pm
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.

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

Posted: Tue Dec 26, 2023 6:37 pm
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?

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

Posted: Wed Dec 27, 2023 4:04 pm
by Lech Kulikowski
Hello,

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

Thank you.