Problem triggering TRIM-Office integration in PowerPoint - CM 9.3.2
Wondering if anyone can see where I'm going wrong here or point me in the right direction.
We have an in-house developed addin for Office 2013 which includes a button in the ribbon that saves a document as a new revision if it's been opened to view (read only) and then checks it out to allow the user to keep editing.
General process is:
- Identify the record and confirm that it's not checked out elsewhere or has been modified since the current user opened it etc
- Save a copy of the read-only document
- Check in the copy as a new revision
- Check it out to offline records
- Close the read-only document and open the checked out version
For Word and Excel, this triggers the CM Office integration and kicks off the monitoring of the document so it will check in when the user closes it.
But it's not working for PowerPoint. Does anyone know why?
Just posting this question in case someone knows that PowerPoint is different and that it needs 'x' to get it to work. Relevant snippets of code below.
// Saving the document that's been opened as read only saveAction(tempfile); // Add this as a new revision trimRecord.SetDocument(new InputDocument(tempfile), true, false, ""); trimRecord.Save(); // Check out the new revision to work on var offlineRecord = new OfflineRecord(trimRecord, true); closeAndReopen(offlineRecord.FullFileName); // Word - closeAndReopen Globals.ThisAddIn.Application.ActiveDocument.Close(); Globals.ThisAddIn.Application.Documents.Open(offlineRecordPath); // Excel - closeAndReopen Globals.ThisAddIn.Application.ActiveWorkbook.Close(); Globals.ThisAddIn.Application.Workbooks.Open(offlineRecordPath); // PowerPoint - closeAndReopen Globals.ThisAddIn.Application.ActivePresentation.Close(); Globals.ThisAddIn.Application.Presentations.Open(offlineRecordPath);