Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add an existing DataSet to Report .rdlc

I have a Report. I need to create another one, similar to the one I have. So I created a second report by copying the first one. Then I created a new DataSet for the new report. I created it also by copying the original dataset (from the first report), and changing the name. Now, when I want to add the new DataSet in the new Report, it doesn't appear in DataSet option in "new Dataset.."

enter image description here

What am I missing? Why can't I see the DataSet that I've created?

like image 973
Gonzalo.- Avatar asked Jun 13 '12 14:06

Gonzalo.-


2 Answers

Finally I solve this. The problem was that when I copied the DataSet, I changed the name of the new one, but in the code behind, the name didn't change. So, I open the DataSet with XML Editor, edit Name, save, re-compile, and it appeared!

like image 179
Gonzalo.- Avatar answered Sep 22 '22 13:09

Gonzalo.-


You could try opening the rdlc file with an xml editor and manually copying out the data source and into your new one. I'm not sure why it wouldn't appear in your dropdown, I don't usually use that interface for rdlcs

like image 33
Mikey Mouse Avatar answered Sep 23 '22 13:09

Mikey Mouse