Hi,
In this file one.pptx.zip (24.8 KB) you can see textbox i created, then i added Date and Time( i didn’t select update automatically option). Is there a way to get field from this portion or get confirmation that this portion is a Date and Time.
Here is my code:
Presentation presentation = new Presentation("one.pptx");
ISlide slide = presentation.getSlides().get_Item(0);
IShapeCollection shapes = slide.getShapes();
AutoShape shape = (AutoShape) shapes.get_Item(0);
IParagraphCollection paragraphs = shape.getTextFrame().getParagraphs();
IPortionCollection portions = paragraphs.get_Item(0).getPortions();
IPortion portion = portions.get_Item(0);
IField field = portion.getField();
System.out.println(field==null); // this prints true
Thanks,
Zeljko.