Getting OutOfMemory exception when exporting document to PDF

2 posts, 0 answers
  1. Phuc
    Phuc avatar
    2 posts
    Member since:
    Mar 2017

    Posted 29 Mar Link to this post

    Hi there,
    I'm having a Word document (6MB) which has 11 pages with image.
    I'm using RadRichTextBox to load it into and then export it to a MemoryStream, then I got an OutOfMemoryException.
    Here is the code sample:
                    IDocumentFormatProvider pdf = DocumentFormatProvidersManager.GetProviderByExtension(ext);
                    pdf.Export(radRichTextBox1.Document, stream);
    When debugging, I observed that the stream is quite big (33MB). Could you please let me know why the stream is really big like that.

    FYI: I'm using the 2015 version

    How can I fix the issue?

  2. Mihail
    Admin
    Mihail avatar
    223 posts

    Posted 03 Apr Link to this post

    Hello Phuc,

    I have already replied in the other thread you have opened for the same problem.

    Regards,
    Mihail
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top