|
Versionshinweise |
22.1, 21.2.06, 21.1.11 |
||
|---|---|---|---|
Code
Groovy
String getFileName(IPresentationResult result)
Beschreibung
Liefert den Dateinamen der geöffneten Präsentationsdatei.
Parameter
-
result
Ergebnis des Öffnens der Präsentationsdatei.
Rückgabe
Dateiname der geöffneten Präsentationsdatei.
Beispiele
Groovy
IPresentationResult openResult = PresentationUtils.openFile("C:\\Work\\myFirstPresentation.pptx");
if (!PresentationUtils.isSuccessful(openResult))
{
/** handle error code */
return;
}
PresentationDocument presentation = null;
try
{
presentation = PresentationUtils.getPresentationDocument(openResult);
String fileName = PresentationUtils.getFileName(openResult);
...
}
finally
{
PresentationUtils.close(presentation);
}