コード例 #1
0
ファイル: DocXReader.cs プロジェクト: killbug2004/WSProf
 private void ParseBody()
 {
     try
     {
         using (Parser parser = new Parser(m_mainDocPart.GetContent(), new BodyConsumer(Context), Consumer))
         {
             parser.EmitContextStart();
             parser.Parse();
             //this appears to be unnecessary now - not sure what it was for in the first place
         //    parser.EmitContextEnd(true, true, true);
         }
     }
     catch (Exception e)
     {
         throw new FcsException("Failure parsing the main body of the document", e);
     }
 }