IDocumentFormatProvider provider Import is not working for docx file

1 posts, 0 answers
  1. Sreevalli
    Sreevalli avatar
    7 posts
    Member since:
    Sep 2012

    Posted 10 Jan 2014 Link to this post


    when i'm trying to import Docx file (
    Docx File) its giving me error as "Value was either too large or too small for an Int32".

    _document = new RadDocument();
    byte[] doc = Convert.FromBase64String(MergeCollection[_attachmentCount].Body);
    IDocumentFormatProvider provider = new DocxFormatProvider();
    MemoryStream stream = new MemoryStream(doc);
    _document = provider.Import(stream);

    Please kindly help me in this.
Back to Top