附上Source code.
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim rpt As New SectionReport1
- rpt.Run()
- rpt.Document.Save("test.rdf")
- Dim PDFExport As GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
- PDFExport = New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
- PDFExport.Version = GrapeCity.ActiveReports.Export.Pdf.Page.PdfVersion.Pdf17
- PDFExport.ImageQuality = GrapeCity.ActiveReports.Export.Pdf.Section.ImageQuality.Medium
- PDFExport.NeverEmbedFonts = ""
- PDFExport.Export(rpt.Document, "test.pdf")
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- Dim rpt As New SectionReport1
- rpt.Document.Load("test.rdf")
- MsgBox(rpt.Label1.Text)
- rpt.Label1.Text = "After Changed"
- MsgBox(rpt.Label1.Text)
- Dim PDFExport As GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
- PDFExport = New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
- PDFExport.Version = GrapeCity.ActiveReports.Export.Pdf.Page.PdfVersion.Pdf17
- PDFExport.ImageQuality = GrapeCity.ActiveReports.Export.Pdf.Section.ImageQuality.Medium
- PDFExport.NeverEmbedFonts = ""
- PDFExport.Export(rpt.Document, "test_after_changed.pdf")
- End Sub
复制代码
|