how can 3 dataGridView for report

Stimulsoft Reports.NET discussion
Post Reply
mojtaba472
Posts: 3
Joined: Sat Nov 17, 2018 4:31 pm

how can 3 dataGridView for report

Post by mojtaba472 »

hello
good time
how can 3 dataGridView for report....
My code is as below ... When I put all three dataGridView, the report page loads as empty.

var report = new StiReport();
report.Load("Report.mrt");
report.RegData("DT1", dataGridTabel1.DataSource);
report.RegData("DT2", dataGridTabel2.DataSource);
report.RegData("DT3", dataGridTabel3.DataSource);
report.Render();
report.Show();

please Help me
Tnx
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: how can 3 dataGridView for report

Post by Alex K. »

Hello,

Please try to add the Synchronize() method after RegData() method.

Thank you.
mojtaba472
Posts: 3
Joined: Sat Nov 17, 2018 4:31 pm

Re: how can 3 dataGridView for report

Post by mojtaba472 »

Hello
Sorry I did not understand
Please give me an example....
Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: how can 3 dataGridView for report

Post by Alex K. »

Hello,

The following code:
...
report.RegData("DT3", dataGridTabel3.DataSource);
report.Dictionary.Synchronize();
...

Thank you.
mojtaba472
Posts: 3
Joined: Sat Nov 17, 2018 4:31 pm

Re: how can 3 dataGridView for report

Post by mojtaba472 »

Alex K. wrote: Tue Nov 20, 2018 7:16 pm Hello,

The following code:
...
report.RegData("DT3", dataGridTabel3.DataSource);
report.Dictionary.Synchronize();
...

Thank you.
hello
After adding the code ( report.Dictionary.Synchronize(); ), I encounter the following error message.

Image

Thank you very much for helping me
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: how can 3 dataGridView for report

Post by Lech Kulikowski »

Hello,

Please send us a sample project which reproduces the issue for analysis on support@stimulsoft.com

Thank you.
Post Reply