Page 1 of 2

If I open another report in designer the datasource is lost

Posted: Mon Mar 20, 2023 2:54 pm
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é

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

Posted: Mon Mar 20, 2023 6:41 pm
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.

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

Posted: Fri Mar 24, 2023 12:28 pm
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.

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

Posted: Fri Mar 24, 2023 3:12 pm
by Max Shamanov
Hello,

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

Thank you.

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

Posted: Tue Apr 04, 2023 2:14 pm
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é

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

Posted: Thu Apr 06, 2023 10:23 am
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

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

Posted: Wed Apr 26, 2023 4:04 pm
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é

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

Posted: Wed Apr 26, 2023 5:07 pm
by Max Shamanov
Hello,

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

Thank you.

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

Posted: Sun Jun 04, 2023 7:43 am
by anli
Hello Max,

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

Best, André

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

Posted: Thu Jun 08, 2023 12:08 pm
by Max Shamanov
Hello,

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

Thank you.