We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Report from dataset inside project.

Thread ID:

Created:

Updated:

Platform:

Replies:

131723 Jul 25,2017 07:48 AM Jul 31,2017 12:36 AM WPF 5
loading
Tags: ReportDesigner
df
Asked On July 25, 2017 07:48 AM

Hi,
I have a project with DataSet. How can I reference this projects DataSet in the Designer. DataSet is based on MS Access database.
Project:

Best regards,

Vinoth Srinivasan [Syncfusion]
Replied On July 26, 2017 09:12 AM

Hi Dubravko, 
 
Thanks for your interest in Syncfusion Components. 
 
You can convert the DataSet as list of objects and use those list of objects as datasource in our WPF report designer. The RDLC DesignMode in ReportDesigner allows you to use business objects as datasource in reports. We have prepared a sample based on this and it can be downloaded from the following location. 
 
 
Please refer our online UG documentation for more details on this. 
 
 
Regards, 
Vinoth S. 


df
Replied On July 26, 2017 10:17 AM

Hi,

thanks for the sample. I managed to get it work. 

One more question, how to avoid datasource pop up window to choose datasource, dataset and method, in other words how to set this

from code behind so that report is just shown.

Thanks


Vinoth Srinivasan [Syncfusion]
Replied On July 27, 2017 04:36 AM

Hi Dubravko, 
 
The pop up is used to get details of the Dataset object at first execution of the report in Report Designer. If the saved report definition has dataset info, then the selected items are shown in the pop up, by default. Report Designer supports to dynamically change method, class, and the namespace of the business object, so the pop up shows up with all default selection items. Once the report has been saved with dataset info then the dataset info code will be generated in the report definition. Please refer to the below screenshot for the saved dataset information.  
 
 
 
 
However, you can edit the report definition of the report in code behind and you can insert the above highlighted code. Please refer the following KB for editing the report in code behind. 
 
Regards, 
Vinoth S. 


df
Replied On July 28, 2017 10:08 AM

Thanks for the info, it works now. 

Best regards


Vinoth Srinivasan [Syncfusion]
Replied On July 31, 2017 12:36 AM

Hi Dubravko, 

Thanks for your update. Please let us know if you require any further assistance on this. 

Regards, 
Vinoth S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;