Query |
Response |
Report Designer adding the DataSource and DataSet at runtime? |
We have prepared a sample to load data from class model at runtime for RDLC report , it can be downloaded from the below location. http://www.syncfusion.com/downloads/support/forum/121107/PREVIE~12032816006.ZIP |
I have found one example that added a DLL at runtime but requires the user to pick the Namespace, class, and method via a popup |
The selection pop up will be displayed to get the details of the business object at first execution of the report in Report Designer and it’s not required once saved. |
Query |
Response | |
1. How do I create this part in the code, so the user does not have to pick in the popup? <rd:DataSetInfo> <rd:DataSetName>Sales Dashboard</rd:DataSetName> <rd:ObjectDataSourceSelectMethod>GetData</rd:ObjectDataSourceSelectMethod> <rd:ObjectDataSourceSelectMethodSignature>System.Collections.IList GetData()</rd:ObjectDataSourceSelectMethodSignature> <rd:ObjectDataSourceType>CompanySalesDemo.AdventureWorks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</rd:ObjectDataSourceType> <rd:TableName>AdventureWorks</rd:TableName> </rd:DataSetInfo> |
We can achieve to add/update business object information for DataSet by modifying the ReportDefinition in code behind as shown in below code snippet,
For your reference, we have prepared a sample based on this and it can be downloaded from below location, http://www.syncfusion.com/downloads/support/forum/121107/ze/DataSetRDCL-1061236428.zip By using this, we can avoid to select the DataSet information while run the RDLC Report. | |
2. I have looked at the source, but do not see a way to stop the "Data Set Properties" Popup even when the above information is set. How do I stop the popup from showing at all? The popup will confuse my users - I need to eliminate any need for the popup. |