Undefined Datasource

Stimulsoft Reports.WPF discussion
Post Reply
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Undefined Datasource

Post by PatrickV »

Hi There,

I want to create a report in Stimulsoft through C#-code, with CSV as a datasource.
This all works as expected and I am able to process the report and get output in Excel. So far so good.

The only issue I'm facing is the following:
When I save the report (that was thus created in C# code) with report.Save("Patrick.mrt") and I try to open the report file in the WPF Designer, It can not process the report and comes up with the error:
Undefined DataSource
The undefined 'PremieSpecificatie' datasource is found in the report. The reporting tool cannot correctly process such type of the datasource! Maybe custom datasources are used in the report. This report cannot be rendered!

Due to the fact that there is no datasource I'm also unable to preview the report or do anything else with it...

So next I tried to recreate the report from scratch in the Designer. I than stored the report as C# Source Code and stuffed that code into my program. The same problem arises...
So when I create a report in the Designer, save it as source code, run the source to recreate the report and call report.Save("xx") I cannot use the created xx.mrt.

Is this a known issue? Or Am i doing something wrong here?

Thx for your time in advance!

Kind regards,

Patrick
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Undefined Datasource

Post by Jan »

Hello, Patrick!

Sorry for troubles with our product!

Can you say which version of the Reports.Wpf you use?

Thank you.
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Re: Undefined Datasource

Post by PatrickV »

Hi Jan,

I can reproduce the issue in 2016.1 on my secondary machine...

HTH's

Patrick
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Undefined Datasource

Post by HighAley »

Hello, Patrick.

What type of Data Source do you use? The data are not stored in report template file.
If you register a DataSet, then you will not be able to render the report this way. You should register it again.
If you create a SQL connection or XML with full file path, then you don't have to add it again.

Thank you.
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Re: Undefined Datasource

Post by PatrickV »

Hi HighAley,

I'm using a CSV data source...
I know the data is not stored in the report and that's not what I'm looking for...
The problem is not even in the creation of the report (through C#) code, of the rendering of the report. That all works as expected...
The problem is that, if I save the report as an MRT file, and I open that MRT file in the Stimusoft designer, that the designer says that the report has an Undefined Datasource...

Please be advised that this happens with a report that is created (from scratch) through C# code.

HTH's

Patrick
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Undefined Datasource

Post by Andrew »

Hello, Patrick,

This is a very strange behaviour of the report designer.

Ususally this mat happen if to create a report in the designer of the new version and then open it in the older version. For example, serious enhancements on CSV were done in the middle of the year 2015.

Please send us a report template to support@stimulsoft for analysis and refer to this forum thread.

Thank you.
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Re: Undefined Datasource

Post by PatrickV »

Hi Andrew,

Thx for your response.
I'm currently awaiting the next release of 2016.1 because I cannot currently get this version to work. (See my other thread regarding the install of 2016.1)
As soon as that problem is resolved I will retest and get back to you guys with a sample program that demonstrates the problem...
Hope to have the newest version ASAP so I can provide you with this example in the next couple of days.

Cheers!

Patrick
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Undefined Datasource

Post by Andrew »

Hello, Patrick,

This is a very strange behaviour of the report designer.

Usually this may happen if to create a report in the designer of the new version and then open it in the older version. For example, serious enhancements on CSV were done in the middle of the year 2015.

Please send us a report template to support@stimulsoft for analysis and refer to this forum thread.

Thank you.
Post Reply