Hi,
I am not able to identify how do I read or write the Header and Footer in Notes Master View?
Is the Header and Footer avaialble in this view is same as in other views?
Example on this will be handy for me. Thanks in advance.
Nataraj
Hi,
I am not able to identify how do I read or write the Header and Footer in Notes Master View?
Is the Header and Footer avaialble in this view is same as in other views?
Example on this will be handy for me. Thanks in advance.
Nataraj
Hi Nataraj
Thanks for your interest in Aspose.Slides.
I am afraid that HeaderFooterEx properties are not implemented for PPTX yet. However for PPT, they can be accessed on normal slides but not on the Notes or MasterNotes slides. Please use the code snippet below to access the header and footer for PPT.
try
{
//Creating an empty presentation
Presentation pres = new Presentation();
//Accessing first slide in PPT
Slide sld=pres.getSlides().get(0);
//Setting slide Header and Footer
sl.getHeaderFooter().setHeaderText("Hello: This is Header Text");
sl.getHeaderFooter().setFooterText("Hello: This is Fotter Text");
sl.getHeaderFooter().setFooterVisible(true);
sl.getHeaderFooter().setHeaderVisible(true);
//Reaading Header and Footer text
String header=sl.getHeaderFooter().getHeaderText();
String fotter=sl.getHeaderFooter().getFooterText();
System.out.println(header+" "+fotter);
//Saving PPT file
pres.write(new FileOutputStream("D://ppt//asd123.ppt") );
}
catch(Exception ex)
{
System.out.println(ex.toString());
}
Thanks and Regards,