0
if(fileExt ==「.doc」|| fileExt ==「.docx」) (WordprocessingDocument wordDoc = WordprocessingDocument.Open(document,true)) { string docText = null;使用(StreamReader sr = newStreamReader(wordDoc.MainDocumentPart.GetStream())) { docText = sr.ReadToEnd(); lbtext.Text = docText; }
}
}轉換docx,文檔打開xml使用打開xml sdk 2.0其工作正常與docx轉換文檔時它的錯誤,該文件已損壞數據