Hello,
I have a few different script running to monitor different data from different tables.
All charts are saved as GIF files under C:\Customer\Data.
I want to create a ppt with one GIF file per slide, with title slide = Gif file name.
The script below is working OK to create a ppt with only 3 GIFs.
NewReport= new window("New report",
V List Box(
Outline box(
"Gif1",
Picture Box( Open("C:\Customer\Data\Gif1.gif", gif ));
),
Outline box(
"Gif2",
Picture Box( Open("C:\Customer\Data\Gif2.gif", gif ));
),
Outline box(
"Gif3",
Picture Box( Open("C:\Customer\Data\Gif3.gif", gif ));
),
););
NewReport << Save Presentation( "C:\Customer\Report\NewReport.pptx", Insert(2), "GIF" );
I modified the script below to add all Gifs files from the data folder but it doesn’t work.
mypath =("C:\Customer\Data\");
FileName = Files in Directory(mypath);
NewReport= new window("New report",
V List Box(
For (i=1, i<=N items(FileName), i++,
Outline box(
""||FileName[i]||"",
Picture Box( Open("C:\Customer\Data\"||FileName[i]||"", gif )),
),
);
););
NewReport << Save Presentation( "C:\Customer\Report\NewReport.pptx", Insert(2), "GIF" );
Thanks for your help
Geof