我目前用的是webSite,不是webapplication。我想问一下,ActiveReport16.2.0是不是不支持website了。我看你给的例子是预览的方式出报表的,我目前是不预览,直接出一个PDF报表,代码如下:
Dim rpt As New SectionReport1()
rpt.Document.Printer.PrinterName = ""
rpt.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A4
rpt.PageSettings.Orientation = GrapeCity.ActiveReports.Document.Section.PageOrientation.Portrait
rpt.Run()
Dim pdfExport As GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport = New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport()
pdfExport.Export(rpt.Document, "F:\PDF\202311070926.pdf")
1.创建webSite
2.新建一个SectionReport文件
3.使用下面的方式出PDF报表
Dim rpt As New SectionReport1()
rpt.Document.Printer.PrinterName = ""
rpt.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A4
rpt.PageSettings.Orientation = GrapeCity.ActiveReports.Document.Section.PageOrientation.Portrait
rpt.Run()
Dim pdfExport As GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport = New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport()
pdfExport.Export(rpt.Document, "F:\PDF\202311070926.pdf")