回复 3楼sjsm的帖子
WinFroms 平台 PDF 导出代码:
- 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");
- }
复制代码 |