Click here to Skip to main content
Rate this: bad
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 1-Feb-12 0:38am
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
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.
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 Sergey Alexandrovich Kryukov 185
1 Zoltán Zörgő 160
2 Peter Leow 130
3 CPallini 70
4 Ramza360 51
0 Sergey Alexandrovich Kryukov 9,568
1 OriginalGriff 6,901
2 Peter Leow 4,737
3 Zoltán Zörgő 4,404
4 CHill60 2,932

Advertise | Privacy | Mobile
Web04 | 2.8.150129.1 | Last Updated 5 Feb 2012
Copyright © CodeProject, 1999-2015
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