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

Free Support Forum - aspose.com

Can't read/write property for Shakewave Flash Object control

I can use below code to read/write properties for Window Media Play control.

But for the Shakewave Flash Object, I can’t read/write properties.

Is there anyone know about it?


PresentationEx pres = new PresentationEx(“c:/1.pptx”);

ControlEx windowMediaPlayControl = pres.getSlides().get_Item(1)
.getControls().get_Item(0);
System.out.println(windowMediaPlayControl.getName());
System.out.println(windowMediaPlayControl.getProperties().size());
IEnumerator i1 = windowMediaPlayControl
.getProperties().iterator();
while (i1.hasNext()) {
DictionaryEntry en = i1.next();
System.out.println(en.getKey() + “=” + en.getValue());
}

ControlEx flashControl = pres.getSlides().get_Item(0).getControls()
.get_Item(0);
System.out.println(flashControl.getName());
System.out.println(flashControl.getProperties().size());
IEnumerator i2 = flashControl.getProperties()
.iterator();
while (i2.hasNext()) {
DictionaryEntry en = i2.next();
System.out.println(en.getKey() + “=” + en.getValue());
}


The output

WindowsMediaPlayer1
25
invokeURLs=-1
SAMIFilename=
captioningID=
autoStart=-1
SAMIStyle=
stretchToFit=0
mute=0
URL=
enableContextMenu=-1
enabled=-1
fullScreen=0
currentPosition=0
defaultFrame=
_cy=7646
_cx=14817
baseURL=
SAMILang=
volume=50
rate=1
balance=0
currentMarker=0
uiMode=full
windowlessVideo=0
playCount=1
enableErrorDialogs=0
ShockwaveFlash1
0

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

Thank you for considering Aspose.

Please share your template presentation file with us to further test the issue at our end.

Thanks & Regards,