RDLC Export Local Report To CSV

為{幸葍}努か 提交于 2019-12-10 22:12:55

问题


In Visual Sudio 2010 ASPX ReportViewer Control the only export options are: Excel, PDF, and Word. How can I export the report to CSV.

I understand that SSRS reports can do this, but in my situation this is not a possibility.


回答1:


If you have control over the data source you can transform the DataSet into CSV and show a link to the user for the download.

You can also add the option CSV on the report viewer export dropdown using jQuery and call the export to CSV when the action is selected.

In this way you "override" the report viewer only for the CSV file format.



来源:https://stackoverflow.com/questions/3151476/rdlc-export-local-report-to-csv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!