简体   繁体   中英

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.."

在此处输入图片说明

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

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM