This project has moved. For the latest updates, please go here.

doc support

Jul 10, 2012 at 1:59 PM
Edited Jul 10, 2012 at 2:01 PM

Hi all,

how i can read the simple doc file with DocX dll. when i read the doc file it throw exception.

basically i want to read the word files without interop, if anyone of you know any other library for this plz help me out.

Jul 20, 2012 at 1:16 PM

Hi Zawar,

 

This should do the trick for you:

 

            string technicalDataFileName = @"YourFilePath\Filename.docx";

            var importedTechnicalDoc = DocX.Load(technicalDataFileName);
            document.InsertDocument(importedTechnicalDoc);

Cheers,