Results 1 to 4 of 4

Thread: Exporting report i have a PDf of 0 byte

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2024
    Posts
    7

    Exporting report i have a PDf of 0 byte

    I use use ActiveReport 10 and in my asp page i use an ActiveReportsWeb:WebViewer. I’d like export my report by a custom button. When i click on button i have just a file of 0 Bytes.

    In my custom button i tryed to insert :

    Dim MyPDF As New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
    Try
    MyPDF.Export(WebViewer1.Report.Document, _path_and_name)
    Catch _Error As Exception
    End Try

    I try to export it when i load the page but i have the same results.
    Thank you Luca

  2. #2
    Hyperactive Member
    Join Date
    Jul 2022
    Posts
    376

    Re: Exporting report i have a PDf of 0 byte

    This project is a .net framework 3.5 - 4.8 asp.net webapp using Webforms with ActiveReport 10 - Standard Edition Web? Do you have the viewer set to runat="server"?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2024
    Posts
    7

    Re: Exporting report i have a PDf of 0 byte

    i forgot to add rpt.run() in the load of page. ty

  4. #4
    Hyperactive Member
    Join Date
    Jul 2022
    Posts
    376

    Re: Exporting report i have a PDf of 0 byte

    Ah, okay, glad it was an easy fix. We've all done stuff like that.

    Some of us more

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width