Click here to Skip to main content
12,456,128 members (53,483 online)
Rate this:
 
Please Sign up or sign in to 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 31-Jan-12 23:38pm
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

I have found my mistake...
The dataSetName parameter and DataSourceName property should be the same.
  Permalink  
Comments
tanweer akhtar 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 5 Feb 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100