[Ironpython-users] ValueError thrown when calling ExportAsFixedFormat

Kevin Bowrin Kevin.Bowrin at carleton.ca
Wed Apr 24 22:08:17 CEST 2013


import clr
clr.AddReference("Microsoft.Office.Interop.PowerPoint")
import Microsoft.Office.Interop.PowerPoint as Ppt
import pdb
 
pp = Ppt.ApplicationClass()

presentation = pp.Presentations.Open("C:\\ test.ppt")
presentation.ExportAsFixedFormat("C:\\test.pdf",  Ppt.PpFixedFormatType.ppFixedFormatTypePDF)
pp.Quit()

This throws ValueError. 

Other methods on `presentation`, like SaveAs() and Export() work without problems. Bug?

Thank you. 


More information about the Ironpython-users mailing list