Converting ODP Presentation to PPT Format in C# Causes ArgumentException

for_aspose.zip (186 Bytes)

Exception: ArgumentException

Message: System::ArgumentException: __cdecl System::Drawing::Bitmap::Bitmap(const class System::SmartPtr<class System::IO::Stream> &,bool)

Stack Trace:

   at System.Drawing.Bitmap..ctor(Stream stream, Boolean useIcm)
   at .(MemoryStream , Boolean ,  )
   at .(MemoryStream )
   at .e()
   at .()
   at .(UInt32 )
   at .()
   at .()
   at .(Stream , ISaveOptions )
   at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
   at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)
   at Filestar.Plugin.AsposeSlides.ConvertSkill.<>c__DisplayClass0_0.<Run>b__0() in D:\a\1\s\Filestar.Plugin.AsposeSlides\ConvertSkill.cs:line 38
--- End of stack trace from previous location ---
   at Filestar.Plugin.AsposeSlides.ConvertSkill.<>c__DisplayClass0_0.<Run>b__0() in D:\a\1\s\Filestar.Plugin.AsposeSlides\ConvertSkill.cs:line 47
   at Filestar.Plugin.AsposeSlides.Utils.<>c__DisplayClass0_0.<RunAbortable>b__1() in D:\a\1\s\Filestar.Plugin.AsposeSlides\Utils.cs:line 34
--- End of stack trace from previous location ---
   at Filestar.Plugin.AsposeSlides.Utils.RunAbortable(Action work, CancellationTokenSource cts) in D:\a\1\s\Filestar.Plugin.AsposeSlides\Utils.cs:line 52
   at Filestar.Plugin.AsposeSlides.ConvertSkill.Run(SkillRequest request, IRunArguments arguments) in D:\a\1\s\Filestar.Plugin.AsposeSlides\ConvertSkill.cs:line 27
   at Filestar.Core.AbstractRunner._ExecuteNode(Job job, AbstractSkillManifest manifestNode, SkillRequest skillRequest, Nullable`1 recipeIndex, HashSet`1 visitedFallbacks, String path, Int32 depth, Stack`1 nodeIds, CancellationTokenSource cancellationTokenSource, IProgress`1 progress)
   at Filestar.Core.AbstractRunner._ExecuteJob(Job job)

@nielsbosma,
Thank you for contacting support.

I reproduced an exception when converting the ODP document to a PPT document.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44059

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Please also share the following additional information if it is possible:

  • OS version on which the conversion was performed
  • .NET target platform in your app

The issues you found earlier (filed as SLIDESNET-44059) have been fixed in Aspose.Slides for .NET 23.7 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.

1 Like