If I open another report in designer the datasource is lost

Stimulsoft Reports.NET discussion
anli
Posts: 13
Joined: Wed May 03, 2017 12:49 pm

If I open another report in designer the datasource is lost

Post by anli »

Hello,

I open a report designer like this:

Code: Select all

report.Load(reportfilename);

if (dtDvOrDs.GetType() == typeof(DataTable))
  report.RegData((DataTable)dtDvOrDs);
else if (dtDvOrDs.GetType() == typeof(DataSet))
  report.RegData((DataSet)dtDvOrDs);
else if (dtDvOrDs.GetType() == typeof(DataView))
  report.RegData((DataView)dtDvOrDs);
report.Dictionary.SortItems();
report.Design();
If I open the report this way everything is ok. If I open another report via File > Open then the datasource is shown but does not contain any data anymore. In ealier versions of Stimulsoft.Reports the data was shown. What do I have to change that I can use the data in the second report too?

Thanks a lot for your help in advance!
Best regards, André
Best regards, André
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: If I open another report in designer the datasource is lost

Post by Max Shamanov »

Hello,

It is difficult to say something without example.
Please send us a sample project that reproduces the issue for analysis.

Thank you.
anli
Posts: 13
Joined: Wed May 03, 2017 12:49 pm

Re: If I open another report in designer the datasource is lost

Post by anli »

Hello Max,
please find attached the sample project.
Run the project. Click 'open report 1'. Look at the preview. Testvalue 1 is shown. Open "test_2.mrt" via Designer. Look at the preview. It is empty. In earlier versions "Testvalue" was shown. I expect "Testvalue" to be shown in preview after opening test_2.mrt.
Thanks a lot for your help in advance.
Attachments
WindowsFormsApp1.zip
(532.56 KiB) Downloaded 303 times
Best regards, André
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: If I open another report in designer the datasource is lost

Post by Max Shamanov »

Hello,

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

Thank you.
anli
Posts: 13
Joined: Wed May 03, 2017 12:49 pm

Re: If I open another report in designer the datasource is lost

Post by anli »

Hello,
did you make any progress investigating this issue? My customers are asking me if I can solve this.
Thanks a lot!
Best regards, André
Best regards, André
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: If I open another report in designer the datasource is lost

Post by Lech Kulikowski »

Hello,

We apologize for the delay, but we need some extra time to investigate the issue thoroughly. We will keep you informed about the result as soon as possible.

Thank you for your patience.
#5424
anli
Posts: 13
Joined: Wed May 03, 2017 12:49 pm

Re: If I open another report in designer the datasource is lost

Post by anli »

Hello,
did you make any progress investigating this issue? My customers are asking me if I can solve this.
Thanks a lot!
Best regards, André
Best regards, André
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: If I open another report in designer the datasource is lost

Post by Max Shamanov »

Hello,

We are still working on the problem. We will let you know when the solution is available.

Thank you.
anli
Posts: 13
Joined: Wed May 03, 2017 12:49 pm

Re: If I open another report in designer the datasource is lost

Post by anli »

Hello Max,

did you make any progress on this? My customers are anoyed by this issue. Thanks for information!

Best, André
Best regards, André
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: If I open another report in designer the datasource is lost

Post by Max Shamanov »

Hello,

We are still working on the problem. We will let you know when the solution is available.

Thank you.
Post Reply