ActiveReports WinFroms 平台 PDF 导出代码

boxing1980 2014-09-22 12:28:19
已经将页面打印出来了,我在打印页面添加一个转换成PDF按钮,请问点击事件方法应该怎么写呢?

ActiveReports WinFroms 平台 PDF 导出代码共享一下呗。
...全文
91 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
ActiveReports上代码: [code=csharp][ private void Form1_Load(object sender, EventArgs e) { SectionReport sr = new SectionReport(); sr.LoadLayout("..\\..\\SectionReport1.rpx"); sr.Run(); this.viewer1.Document = sr.Document; } private void exportToPDFToolStripMenuItem_Click(object sender, EventArgs e) { GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport pe = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport(); pe.Export(this.viewer1.Document, "test.pdf"); } code]

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧