web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error saving a report with a bitmap to a pdf file

(0) ShareShare
ReportReport
Posted on by 120

Hi,

 

I don't know if someone has came across the same problem. We have a report that has a large bitmap in the frontPage and when we try to save it as a pdf file it give us this error due to the bitmap image:

Error Message (16:30:36) Error executing code: Insufficient memory to run script.

Stack trace

(C)\Classes\BinData\ascii85Encode
(C)\Classes\PDFViewer\writeBitmap - line 111
(C)\Classes\ReportOutputUser\writeField
(C)\Classes\ReportOutputUser\printViaClass
(C)\Classes\ReportViewer\printPDF
(C)\Classes\ReportViewer\printToTarget
(C)\Classes\ReportViewer\dialogAndPrint

It seems to be that the buffer has not enough size or that the ascii85encode method resize the bitmap image getting bigger as I read in some blogs. Is that right? Before trying to change the MaxBufferSize  in the registry editor (client and AOS), I would like to know if this really works or if there is another solution for this problem.

At the moment, we are solving this issue by printing the report in a Adobe PDF printer instead of saving as a pdf file.

Thanks in advance.

Regards,

Laura.

*This post is locked for comments

I have the same question (0)
  • Laura Espuelas Profile Picture
    120 on at

    We work with Dynamics Ax 4.0 SP2.

  • Praveen Profile Picture
    1,201 on at

    Hi Laura,

    Is the issue client specific, can you try in another machine and does the error still persistent.

    Other things you can check it the Adobe version, did you recently update the reader version?

    I faced a similar issue, when the PDF writing was working with Adobe reader 6.0 but not after the update to Adobe reader 8.0.

    There are known issues in AX & PDF printing like the pictures sizing will look weird from screen to print. Try to do some trial and error, you may need to check out what works.

    Praveen

  • Laura Espuelas Profile Picture
    120 on at

    Hi Praveen,

    No, it isn't. It happens in all machines and with all reports that has a big picture.

    In terminal we have Adobe acrobat 7.0 Standard and in my current PC I have Acrobat reader X (I do not know if the process run on client or Server). I think it has nothing to do with the acrobat version since it is the Ax PDFViewer class the one that could not handle large bitmap picture.  

    Yes, I found out other issues related to images in pdf files but are not exactly the same issue because the pdf file that the class generates could not be open because is damage. I will try the resizing of the buffer in client and AOS.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans