如何在C#中保存和打开报告(rdlc报告) [英] How to save and open report (rdlc report) in C#
本文介绍了如何在C#中保存和打开报告(rdlc报告)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都建议我如何在c#中保存rdlc报告并打开它按钮点击按钮
我尝试过:
i使用reportviewer.now创建了报告我想在某个地方保存该报告,如果用户想要保存它......如果用户想要查看它,他应该再次能够按照所有设计查看它。
我怎么能这样做?
任何建议或链接?
an any one suggest me how to save rdlc report in c# and open it as it is on button click
What I have tried:
i have created report using reportviewer.now i want to save that report somewhere if user want to save it..and again if user wants to view it he should be able to view it as it is with all the design.
how i can do that?
any suggession or link?
推荐答案
您可以将报告呈现为PDF,并在需要时使用FileStream将其保存在客户端计算机上。
用户ReportViewer.LocalReport.Render
以字节数组形式获取PDF报告然后使用FileStream
进行保存的方法。
You can render the report as a PDF and when needed, save it on the client computer using FileStream.
UserReportViewer.LocalReport.Render
method to get the PDF report in an byte array and then useFileStream
to save it.
这篇关于如何在C#中保存和打开报告(rdlc报告)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文