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[/EXCEPTION]
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$
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.