Print PDF report for web which is hos on azure web app server is slow

Posted by: huynhduyhaiduacc on 20 August 2018, 4:16 pm EST

  • Posted 20 August 2018, 4:16 pm EST

    We are using Active RP v9 document for print a PDF report which has 116 pages and around ~800 kb.

    When it runs on localhost take 10 seconds, but when I deploy to Azure host it takes more than 40 seconds it means 4 times slowly.

    An azure host is standard S1, and a file size just 800kb so I think this is not a cause.

    Is there any way to get around this?

    Any other ideas or solutions would be GREATLY appreciated!!!

  • Posted 20 August 2018, 9:48 pm EST

    Hello,

    If my understanding is correct, you are using “AcrobatReader” viewer type of “WebViewer” and hosted the application to the Azure server. After that, you are printing the report using the acrobat printer button.

    Please confirm If my understanding is correct?

    Thanks,

  • Posted 26 August 2018, 5:37 pm EST

    Hi mohitg

    Thanks for your response

    I write a binary to response and let browser open it by default.

    My code struct is below:

    MainPge.aspx

    Sub PrintPdf()
    	Dim pdfstream() As Byte
                pdfstream = ReportDll.MakePdf()
    	...
    	Response.BinaryWrite(pdfstream )
    	...
    End Sub
    

    ReportDll

    Funcntion MakePdf() As Byte()

    _pdf = New Section.PdfExport

    memStream = New System.IO.MemoryStream

    _pdf.Export(_rpt3.Document, memStream)

    Return memStream.ToArray()

    End Function

    And when it prints a report, it takes 100% CPU usage.

    Thanks!

  • Posted 26 August 2018, 6:01 pm EST

  • Posted 26 August 2018, 10:50 pm EST

    Hello,

    Could you please confirm which version of AR that you are using AR9 or AR12.

    Thanks,

  • Posted 27 August 2018, 3:32 pm EST

    I am using AR9.0J Professional

  • Posted 27 August 2018, 8:54 pm EST

    Hello,

    Could you please check with the latest version of AR as there are lots of performance issue resolved in the latest version.

    Thanks,

  • Posted 28 August 2018, 6:42 pm EST

    Hi Mohit

    Can I upgrade from AR9 → AR12 at no additional cost or I have to purchase a new version separately

    Thanks

  • Posted 28 August 2018, 7:40 pm EST

    Hello,

    You need to purchase the new version separately. However, you could check with the trial version of AR12. If the issue still reproducible with the new version of AR then could you please share the sample application with us so that I can replicate the issue at my end.

    If the issue is not reproducible in the new version of AR then I would request to upgrade the AR to the latest build.

    Thanks,

Need extra support?

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

Learn More

Forum Channels