Hai,
using (Stream ms = new MemoryStream(bytearray of attached file))
{
WordDocument wordDocument = new WordDocument(ms, Syncfusion.DocIO.FormatType.Docx, XHTMLValidationType.None );
Syncfusion.EJ2.DocumentEditor.WordDocument document = Syncfusion.EJ2.DocumentEditor.WordDocument.Load(wordDocument);
sfdt = Newtonsoft.Json.JsonConvert.SerializeObject(document);
document.Dispose();
}
I used the above code to create a Syncfusion document. But is throwing this error '
Zip exception.Can't locate end of central directory record. Possible wrong file format or archive is corrupt'
I created this file on Microsoft Word document.
Attachment:
Sample_File_164b3ff2.zip