This is a migrated thread and some comments may be shown as answers.

IDocumentFormatProvider provider Import is not working for docx file

0 Answers 6 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Sreevalli
Top achievements
Rank 1
Sreevalli asked on 10 Jan 2014, 06:46 AM
Hi,

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.

No answers yet. Maybe you can help?

Tags
RichTextBox
Asked by
Sreevalli
Top achievements
Rank 1
Share this question
or