Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RdlViewer Rebuild method removes the DataSet #162

Open
BalintPogatsa opened this issue Jul 8, 2017 · 0 comments
Open

RdlViewer Rebuild method removes the DataSet #162

BalintPogatsa opened this issue Jul 8, 2017 · 0 comments

Comments

@BalintPogatsa
Copy link

If I use the RdlViewer as mentioned in the wiki page, xlsx export creates an empty file.

The workaround to the issue is to set the DataSet again after calling the Rebuild method:

// This table needs to match the one you are setting
rdlView.Report.DataSets["DataSetNameInYourReport"].SetData(YourDataTable);  

rdlView.Rebuild();
// Workaround
rdlView.Report.DataSets["DataSetNameInYourReport"].SetData(YourDataTable);  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant