When using Aspose.Slides 15.3.0.0, if I look at the DocumentProperties on a presentation, I can see all of them except the Template/TemplateName. In the attached PPTX using VBA, I can query for the TemplateName and the following string is returned: “Microsystems WS.” Is this a problem or am I looking in the wrong class/collections.
C# Sample
Aspose.Slides.Presentation pres = new Aspose.Slides.Presentation(openFileDialog1.FileName, option);
string x = pres.DocumentProperties.Template;
VBA Sample
?ActivePresentation.TemplateName
Hi Stacey,
Thank you for considering Aspose.Slides.
I have worked with the presentation file shared by you and regret to share that at present the requested support is unavailable in Aspose.Slides. I have created an issue with ID SLIDESNET-36419 as new feature request 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.
Many Thanks,
The issues you have found earlier (filed as SLIDESNET-36419) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
I have downloaded 15.4 and still do not see a Template property on the DocumentProperties class. Is there another way to access the template name?
Hi Stacey,
As you can see in PowerPoint “Template” properties is really “blank” but if you look into advanced properties there is property called “Theme” that takes the value “Microsystems WS”. So please try using the following sample code on your end to serve the purpose.
String x = pres.DocumentProperties.ApplicationTemplate; // it returns "blank"
String y = pres.MasterTheme.Name; // it returns "Microsystems WS"
Please share, if I may help you further in this regard.
Many Thanks,
Perfect–thank you. This works.