Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Convert word document to text

$
0
0

I am attempting to convert a word document to text using OpenXml sdk. Are there any examples of how to do this?

I can open the file, and get the body, but there is no formatting.

OpenSettingsos =newOpenSettings();

WordprocessingDocumentdoc =WordprocessingDocument.Open(fileName,false, os);

Bodybody = doc.MainDocumentPart.Document.Body;

text = body.InnerText;


dave


Viewing all articles
Browse latest Browse all 1288

Trending Articles