我正在从 v11 升级到 Grape City Active Reports v17,但在使用以下代码时遇到了一些困难:
Dim pdf As PdfExport
Dim MyMemStream As System.IO.MemoryStream = New System.IO.MemoryStream
pdf.Export(MyRpt.Document, MyMemStream)
MyMemStream.Position = 0
Dim MyRptAttachment As Attachment = New Attachment(MyMemStream, "MyReport.pdf", "application/pdf")
行
pdf.Export(MyRpt.Document, MyMemStream)
生成以下错误:
Error BC30516 Overload resolution failed because no accessible 'Export' accepts this number of arguments.
好的,我理解这个错误,但是关于这种情况下需要哪些参数的信息绝对为零。文档中没有任何内容准确说明此调用中所需的参数。我已经阅读并重新阅读了此链接中的文档https://www.grapecity.com/activereportsnet/docs/latest/online/pdf-export.html,并且该文档作为对 pdfExport 的引用显然是错误的无法解决,我能够解决该问题,但无法弄清楚导出需要哪些参数。这段代码在 Active Reports v11 上运行没有问题,我知道事情一直在变化,但一些文档会很好。