Apache OpenOffice (AOO) Bugzilla – Issue 128527
.getPresentation() unavailable in Impress if Draw is opened first
Last modified: 2022-07-12 06:34:47 UTC
Created attachment 87131 [details] Impress file to test the issue The problem was reported and analyzed on the English forum: "Impress Macro Not Working After Opening Draw" https://forum.openoffice.org/en/forum/viewtopic.php?t=108051 Steps to reproduce:* 1. Open the attached file. 2. Press the "Slide Show" button to start a slide show. 3. Finish the slide show. 4. Close the file and then quit OpenOffice. 5. Launch OpenOffice 6. Open new Draw document. 7. Open the attached file. 8. Press the "Slide Show" button. Result: This time an error message is displayed: "BASIC runtime error. Property or method not found: getPresentation." --------------------------- * The attached file "StartPres.odp" contains a macro: Sub Main oPres = ThisComponent.getPresentation() oPres.Start() End Sub