如何在按钮上将RDLC报告导出为PDF? [英] How to Export RDLC Report to PDF on Button Click ?
本文介绍了如何在按钮上将RDLC报告导出为PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在VB.NET,Windows窗体应用程序中询问RDLC报告。
我想要点击一个按钮,会出现一个对话框询问位置。
报告应该在给定位置导出为PDF格式。
建议我一个片段代码。
解决方案
有很多链接可以帮助您导出到PDF 谷歌。 [ ^ ]
尝试使用报告控件'的 LocalReport.Render方法 [ ^ ]。
至于对话框,只需使用保存文件对话 [ ^ ]对象。
希望这会有所帮助。
I am asking about RDLC Report in VB.NET, Windows Forms Application.
I want that on Click of a button, A dialog box should appear asking the location.
And the report should be exported into PDF at given location.
Suggest me a snippet of code.
解决方案
There are a lot of links that could help you export to a PDF on google.[^]
Try using the report control''s LocalReport.Render method[^].
As for the dialog, just use a SaveFileDialog[^] object.
Hope this helps.
这篇关于如何在按钮上将RDLC报告导出为PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文