Saving a PowerPoint Presentation Causes "Method or Operation Not Implemented"

Hi

Here is the file (please delete after usage !):

here is the code:

using (var stream = new FileStream(ppt, FileMode.Open))
{
    var presentation = new Aspose.Slides.Presentation(stream, loadOptions);
    try
    {
        WriteLog("Saving PowerPoint: " + outPpt, LogType.info);
        presentation.Save(outPpt, Aspose.Slides.Export.SaveFormat.Pptx);
        WriteLog("PowerPoint saved !", LogType.success);
    }
    catch (Exception ex)
    {
        WriteLog("NormalizingPPT error saving pptx: " + ex.Message, LogType.error);
    }
}

Thank you

@pcaillol,
Thank you for contacting support.

I was unable to reproduce the error you are encountering. Please check the problem carefully again. If the issue persists, please share the following information:

  • OS version on which the error appeared
  • .NET target platform in your app
  • Aspose.Slides version you used
  • any additional information about the environment

win10 .net 23.1
visual studio
i am able to reproduce with a lot of pptx

clue: when i just open, save it and retry: it works.

Thanks

anothe file:

StackTrace is :

   à Aspose.Slides.   .Seek(Int64 , SeekOrigin )
   à Aspose.Slides.   . ()
   à Aspose.Slides.   .(Stream )
   à Aspose.Slides.   .(Stream )
   à Aspose.Slides.   .(Stream )
   à Aspose.Slides.   . ()
   à Aspose.Slides.   .(Presentation , Stream , PresentationTypeEx , IPptxOptions , InterruptionToken )
   à Aspose.Slides.Presentation.(Stream , PresentationTypeEx , IPptxOptions )
   à Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
   à Aspose.Slides.Presentation.Save(String fname, SaveFormat format)

@pcaillol,
I was also unable to reproduce the error with the presentation above on my side. We need more information to reproduce the exception and fix it.

Hi

here are another files: first is the best

here is another file:

Usually, i just need to delete a slide in that presentation to unlock the issue

here is exception:
image.png (60.9 KB)

here is code as simple as it is:

using (var stream = new FileStream(ppt_path, FileMode.Open))
{
    Aspose.Slides.Presentation pres = null;
    try
    {
        pres = new Aspose.Slides.Presentation(stream, loadOptions);
        Aspose.Slides.Export.SaveFormat ppt_file_aspose_format = GetPresFormat(ppt_path);
        pres.Save(ppt_out, ppt_file_aspose_format);
        Console.WriteLine("ok");
    }
    catch (Exception ex)
    {
        Console.WriteLine("ko");
    }
}

Thank you.

@pcaillol,
Unfortunately, I have not managed to reproduce the exception on my side yet. Please share a complete code example including the initialization of the loadOptions variable.

here it is:

var ppt_path = "path_to_ppt";
var ppt_out_path = "path_to_ppt_out";
Aspose.Slides.LoadOptions _loadOptions = new Aspose.Slides.LoadOptions()
{
    BlobManagementOptions = new BlobManagementOptions
    {
        PresentationLockingBehavior = PresentationLockingBehavior.KeepLocked,
        IsTemporaryFilesAllowed = true,
        MaxBlobsBytesInMemory = 100 * 1024 * 1024
    }
};
using (var stream = new FileStream(ppt_path, FileMode.Open))
{
    Aspose.Slides.Presentation pres = null;
    try
    {
        pres = new Aspose.Slides.Presentation(stream, _loadOptions);
        Aspose.Slides.Export.SaveFormat ppt_file_aspose_format = GetPresFormat(ppt_path);
        pres.Save(ppt_out_path, ppt_file_aspose_format);
        Console.WriteLine("ok");
    }
    catch (Exception ex)
    {
        Console.WriteLine("ko");
    }
}

Have you retried on “test4.pptx” file ?

Otherwise, is there a unique identifier of shapes in general ?

I could consider identifying shape containing the video.

@pcaillol,
Thank you for the complete code example. I reproduced the exception you reported.

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-43822

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 check if the UniqueId and OfficeInteropShapeId properties from the IShape interface are suitable for your goals.

Hi this is good news finally !

Which pptx file did you use : “test4.pptx” or “IAC-22,C3,2,5,x73968.show.pptm” ?

Thank you for informations.

UniqueId and OfficeInteropShapeId properties seem not to be unique for a video shape, too bad.

@pcaillol,

I was able to reproduce the exception with all four presentations.

The UniqueId and OfficeInteropShapeId properties are unique within a presentation and a slide, respectively. Could you please describe your unique id requirements for video shapes?

Hi

I just need to know how many times a video is used in a videoshape.

Because a video could have been inserted more than once under different names : basically after renaming

I disagree
The UniqueId and OfficeInteropShapeId properties are unique within a presentation and a slide
By simple manipulations, they can be easily the same.

thanks.

@pcaillol,

I already answered you about the video here.

Nothing new. Thank you Andrey ! Cheers.

Looking forward to testing the very last version with all fixes :slight_smile:

Will all they be included in 23.3 ? :slight_smile:

Nice evening !

@pcaillol,
Unfortunately, the issue SLIDESNET-43822 has not been scheduled for investigation yet.

Means that all the others have been ? :slight_smile:
When do you think the delivery will be ?
enjoy your day. thanks.