wDoc := docapp1.Documents.open(ExtractFilePath(Paramstr(0)) + ‘abc.doc‘); wDoc.SaveAs(ExtractFilePath(Paramstr(0)) + ‘tmp\2.rtf‘, wdFormatRTF); wDoc.close; form2.rxRichEdit1.Lines.LoadFromFile(ExtractFilePath(Paramstr(0)) + ‘tmp\2.rtf‘); form2.show;
时间: 2024-10-05 21:22:41