ActiveReports v2 ExportStream return empty

Posted by: chong.mun.ho on 9 April 2025, 4:09 am EST

  • Posted 9 April 2025, 4:09 am EST

    Hi,

    I had issue on ExportStream. When i call myPDFExport.ExportStream rptInvoice.Pages, myBArray, myBArray is empty. Whereas i try myPDFExport.Export rptInvoice.Pages, the PDF was exported. Could you please give some advise?

    Private Function WebCacheExport() As Long
        Dim myBArray As Variant
        Dim myPDFExport As ActiveReportsPDFExport.ARExportPDF
        Set myPDFExport = New ActiveReportsPDFExport.ARExportPDF
        
        myPDFExport.AcrobatVersion = DDACR40
        myPDFExport.FileName = App.Path & "\PDFReport.PDF"
        myPDFExport.JPGQuality = 100
        myPDFExport.OutputTOCAsBookmarks = True
        myPDFExport.SemiDelimitedNeverEmbedFonts = ""
        myPDFExport.ShowBookmarksInAcrobat = True
        
        myPDFExport.ExportStream rptInvoice.Pages, myBArray
        
        ' Check the value of myBArray
        If IsEmpty(myBArray) Then
            MsgBox "myBArray is empty."
        Else
            MsgBox "myBArray has data."
        End If
        
        WebCacheExport = 0 
    End Function
  • Posted 10 April 2025, 12:07 am EST

    Hi,

    Please note ActiveReports v2 is a legacy product and we no longer support it. ActiveReports v2 is out of maintenance for a while now which is why no bug fixes or enhancement requests will be provided for ActiveReports v2.

    I would suggest you to upgrade to ActiveReports 19 for the latest bug fixes and features. You may download ActiveReports 19 using the following link: Download ActiveReports 19

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels