예제 #1
0
 public static XmlDocument Process(string docFile)
 {
     HWPFDocumentCore hwpfDocument = WordToFoUtils.LoadDoc(docFile);
     WordToFoConverter wordToFoConverter = new WordToFoConverter(new XmlDocument());
     wordToFoConverter.ProcessDocument(hwpfDocument);
     return wordToFoConverter.Document;
 }
예제 #2
0
        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;
        }