I create an OLE instance of PowerPoint and send commands to it:
procedure ExportSlide(const SlideIndex : Integer); var ppt : Variant; begin ppt := GetActiveOleObject('Powerpoint.Application'); ppt.ActivePresentation.Slides.Item(SlideIndex).Export('c:\test.png', 'PNG', 640, 480); ppt := Unassigned; end;
This code works very well with all PowerPoint versions (2000, 2002, 2003, 2007, 2010).
However PowerPoint 2013 sometimes loses focus. We can no longer change slides using keyboard. We must click on full screen slide to restore focus.
Comments: Is it an official bug in PowerPoint 2013?
Answers: Any fix or workaround?