Click here to Skip to main content
15,880,299 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi, All
I have used this link to generate my rdlc report dynamically at runtime, but i received the following error message in my report viewer when i ran it :

a data source instance has not been supplied for the data source 'EquipDS'.

Note :
I have set 'EquipDS' instead of dataSetName parameter and 'EquipDataSet' for DataSourceName property.

what is my mistake???
Posted
Comments
Kreagan Naicker 1-Feb-12 14:18pm    
Hi Phoenix.

Is your requirement to dynamically create the report itself or just the loading of the report needs to be dynamic?

If the answer is yes to the above then you can design the report at design time and load it into the report viewer at runtime and then bind a normal dataset (i.e. built from SQL or XML file).

1 solution

I have found my mistake...
The dataSetName parameter and DataSourceName property should be the same.
 
Share this answer
 
Comments
tanweer 3-Sep-13 11:03am    
excellent solutions

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900