public static XmlDocument Process(string docFile) { HWPFDocumentCore hwpfDocument = WordToFoUtils.LoadDoc(docFile); WordToFoConverter wordToFoConverter = new WordToFoConverter(new XmlDocument()); wordToFoConverter.ProcessDocument(hwpfDocument); return wordToFoConverter.Document; }
public static XmlDocument Process(string docFile) { HWPFDocumentCore hwpfDocument = WordToFoUtils.LoadDoc(docFile); WordToFoConverter wordToFoConverter = new WordToFoConverter(new XmlDocument()); wordToFoConverter.ProcessDocument(hwpfDocument); return(wordToFoConverter.Document); }
private static String getFoText(String sampleFileName) { HWPFDocument hwpfDocument = new HWPFDocument(POIDataSamples.GetDocumentInstance().OpenResourceAsStream(sampleFileName)); WordToFoConverter wordToFoConverter = new WordToFoConverter(new XmlDocument()); wordToFoConverter.ProcessDocument(hwpfDocument); return wordToFoConverter.Document.InnerXml; }