We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PPT files with Macros : Presentation.VbaProject is null

Hi support,


I am trying to define if a presentation contains macros. It seems that with PPT files, the property VbaProject is null. I use the latest version of Aspose.Slides : 14.3.0.

Sample code
var ppt = new Presentation(pptFile);
var pptVbaProject = ppt.VbaProject == null ? “(null)” : ppt.VbaProject.ToString();
Trace.WriteLine("PPt VbaProject: " + pptVbaProject);

var pptm = new Presentation(pptmFile);
Trace.WriteLine("PPtm VbaProject: " + pptm.VbaProject);

Output

PPt VbaProject: (null)
PPtm VbaProject: System.Byte[]


Please find attached SlidesWithMacros.ppt and SlidesWithMacros.pptm, the files used for my tests, in a zip file.

Thank you,
Lea.

Hi Lea,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the sample files.

We are able to reproduce your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: SLIDESNET-35398. You will get the notification via this forum thread once the issue gets resolved.

Thanks & Regards,

Hi guys,


What is the update on this bug. It’s been open since Janurary. Any news?

Maurice

Hi Maurice,

I have checked the status of your reported issue in our issue tracking system and it is still pending for investigation at development team’s end. I have requested them to share any update and ETA regarding the issue. As soon as any feedback is shared, I will update you via this forum thread.

Thanks & Regards,