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

Free Support Forum - aspose.com

Identifying time/date shape

Hi there

I was wondering if you could tell me how Aspose.Slides represents a "Date& time " field.
These are added to a presentation via the “insert” menu in powerpoint.
I’ve looked at the Aspose.Slides helpfile but couldnt find the information I was looking for.

I’ve attached a document containing the field I mention.

Thanks

Eric

Hi Eric,

Here is the sample code that inserts Date / Time on a PPT:

Presentation pres = new Presentation();

Slide sld = pres.GetSlideByPosition(1);

HeaderFooter hf= sld.HeaderFooter;

hf.IsFooterVisible = true;

hf.IsDateTimeVisible = true;

hf.DateTimeFormat = DateTimeFormat.DateTime_ddddMMMMddyyyy;

pres.Write("sch.ppt");