WikiTaskTutorial/Powerpoint97

From BITPlan Wiki
Jump to navigation Jump to search


This is an Example for accessing a Powerpoint97 ppt document from a WikiTask. The example file is Presentation Tips see http://poi.apache.org/slideshow/quick-guide.html

template

This template includes Office#Powerpoint97

@include(wiki.Office.Powerpoint97)
The powerpoint presentation @(wikiTask.getInput())
@if(powerpoint.error) {  
can not be opened due to error @(powerpoint.error.getMessage())
} else {
 contains the following slides:
@("{|") class="wikitable sortable"
! #
! title
|-
@{ int page=0; }
@for (Slide slide:powerpoint.slides) { 
| @(++page)
| @(slide.getTitle())
|-
}
@("|}")
}
{{wikitask|cmd=runtemplate|input=http://www.iasted.org/conferences/formatting/Presentations-Tips.ppt|engine=Rythm|template={{FULLPAGENAMEE}}#template|targetpage={{FULLPAGENAMEE}}#result}}

runtemplate -> WikiTaskTutorial/Powerpoint97#result

result

The powerpoint presentation http://www.iasted.org/conferences/formatting/Presentations-Tips.ppt

contains the following slides:
# title
1 Making PowerPoint Slides
2 Tips to be Covered
3 Outline
4 Slide Structure – Good
5 Slide Structure - Bad
6 Slide Structure – Good
7 Slide Structure - Bad
8 Fonts - Good
9 Fonts - Bad
10 Colour - Good
11 Colour - Bad
12 Background - Good
13 Background – Bad
14 Graphs - Good
15 Graphs - Bad
16 Graphs - Good
17 Graphs - Bad
18 Graphs - Bad
19 Spelling and Grammar
20 Conclusion
21 Questions??