Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VS2010 RDLC
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 at 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 at 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
0 OriginalGriff 310
1 Sergey Alexandrovich Kryukov 166
2 PhilLenoir 164
3 Richard MacCutchan 160
4 Sharmanuj 146
0 Sergey Alexandrovich Kryukov 6,077
1 OriginalGriff 5,115
2 CPallini 2,473
3 Richard MacCutchan 1,597
4 Abhinav S 1,505


Advertise | Privacy | Mobile
Web03 | 2.8.140814.1 | Last Updated 5 Feb 2012
Copyright © CodeProject, 1999-2014
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