在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
function ReadPPt(sName: string): string;
var n,m,i,j: integer; PptApp: OleVariant; begin try PptApp := CreateOleObject('PowerPoint.Application'); PptApp.Visible := true; PptApp.Presentations.Open(sName); n := PptApp.ActiveWindow.Presentation.Slides.Count; for i:=1 to n do begin m := PptApp.ActiveWindow.Presentation.Slides.item(i).Shapes.Count; for j:=1 to m do begin If PptApp.ActiveWindow.Presentation.Slides.item(i).Shapes.item(j).HasTextFrame Then result:=result+PptApp.ActiveWindow.Presentation.Slides.item(i).Shapes.item(j).TextFrame.TextRange.Text +#$D#$A; end; end; finally PptApp.ActiveWindow.Presentation.Saved := true; PptApp.ActiveWindow.Close; PptApp.Quit; PptApp := null; end; end; |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论