Hi,
I am working within a Qt application (so C++), and I am encountering some issues when interacting with PowerPoint through its COM API.
I am trying to save 1. an entire presentation out as a collection of PNG (or any image format) files, and 2. each slide as an image after I have modified it (mostly by removing a load of shapes from it). In both cases, I am getting the following (relative) error when calling the Export, SaveAs or SaveAsCopy functions:
Code: 16389
Source: Microsoft PowerPoint 2013
Description: Presentation.Export : PowerPoint can't save ^0 to ^1.
The rest of the calls I am making throughout are working fine, including calls to Shape.Export which was apparently deprecated and then removed. I am pretty certain the issue is not on my side as everything else is working fine.
Calls I am making look like this:
QAxObject * presentation = thisIsAWorkingCOMWrapperObjectForThePresentationIWantToWorkWith();
presentation->dynamicCall("Export(QString,QString)",tempFilePath,"png");
It does not make any difference if I also include the default parameters in the call (i.e. explicitly add the slide sizes).
Any help would be greatly appreciated.