Save Template PowerPoint PPT/PPTX Template with Python

Hi Aspose.Slides Family,

i have a confusing problem with Aspose.Slides…

i work with Mono ( version - Mono JIT compiler version 3.2.8 ) and Ironpython ( version - 2.7 ) on a Ubuntu Virutell Maschine ( version - 14.04 ).

This is my Python Code ( version - 2.7 ):

<br><blockquote><span style="background-color: rgb(211, 211, 211);"><font color="#FFA500"><span style="background-color: rgb(255, 255, 255);"># encoding: utf-8<br><br>import sys, clr, System, re<br>sys.path.append(".")<br><br>clr.AddReferenceByName('Aspose.Slides.dll')<br><br>import Aspose.Slides<br><br>#################<br>def setLicense():<br>#################<br> theLicense = Aspose.Slides.License()<br> theLicense.SetLicense('Aspose.Slides.lic')<br><br><br>#####<br>if __name__ == '__main__':<br>#####<br> setLicense()<br><br> thePresentation = Aspose.Slides.Presentation("pieChart_template.pptx")<br> <br> theSlide = thePresentation.Slides[0]<br><br> thePresentation.Save("test.pptx", Aspose.Slides.Export.SaveFormat.Pptx)</span></font><br></span></blockquote>


I only Open and Save a PP Presentation and get an Exception:
( pptest.py - the python script file, ipy.exe - ironpython exe )

[EXCEPTION]

sa@ubuntu1404:/test aspose$ mono /srv/install/IronLanguages/bin/Release/ipy.exe pptest.py

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Windows.Forms.Form.Dispose (Boolean disposing) [0x00000] in :0
at System.ComponentModel.Component.Finalize () [0x00000] in :0

sa@ubuntu1404:/test aspose$

[/EXCEPTION]

In the Attachment there are my Script, Tmp PP File and the Current Aspose.Slides Lib i have used.

Hope you can help me…

Thank you !
Marius W.



Hi Marius,


Thanks for considering Aspose.Slides.

We are investigating your issue and we will get back to you shortly.

Best Regards,

Hi Marius,


Please accept my apologies for the delayed response.

I have observed your requirements and worked with the presentation file shared by you. I have been able to reproduce the issue. A ticket with ID SLIDESNET-36493 has been logged in our issue tracking system to further investigate and resolve the issue.This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

Hi Marius W,

Our product team has investigated the issue on their end. I have also tried loading the presentation using Aspose.Slides for .NET API and there is no issue. The stack trace that you have shared also refers to an issue related some form on your end rather than Aspose.Slides it self. I suggest you to please try using Aspose.Slides for .NET 15.4.0 on your end in this regard. Please try using Aspose.Slides for .NET in a simple console based application and see if the issue is still arising. Please share the complete stack trace and working sample project with us if the issue still incur on your end and relates to Aspose.Slides.

Many Thanks,