You are here: Home Tools WebLibrary docs Create a PPT file

Create a PPT file

by Administrator last modified Sep 13, 2007 10:22 AM

The best way to create a PowerPoint file will be to use the template provided with WebLibrary. This template includes a macro that will help you to export the file content in a format that it is compatible with WebLibrary.


To start, follow these steps:

  • open the folder "PPTtemplate", into the WebLibrary download pack
  • double-click on the PowerPoint template file you can find inside


  • Open PowerPoint
  • Select "New Presentation"
  • Select the WebLibrary template (you can find it in the folder "PPTtemplate" into the WebLibrary download pack)


The second method is discouraged because often PowerPoint does not include the macro that you need.

When PowerPoint will tell you that it is dangerous to open the file because it contains a macro, you have to select "Enable Macros", otherwise the needed macro will not work.


Now, you have to customize the macro:

  • Select "Tools" - "Macro" - "Macros" in the PowerPoint menus
  • You will find the "ExportFiles" macro: then press the "Edit" button
  • At the beginning of the macro you can find a string containing a path: you have to replace that string with a new string which contains the path you want to use for PowerPoint files
  • Then, you can close the Microsoft Visual Basic editor and save the file
  • Finally, you can edit the file.

The path represents the location in which PowerPoint will export HTML files when you run the macro. That folder will contains also the final output after launching WebLibrary.


When the slides are ready, you have to save the PowerPoint file and run the ExportFiles macro in order to create the files which are needed by WebLibrary. For that, you have to:

  • Select "Tools" - "Macro" - "Macros" in the PowerPoint menus
  • Press the RUN button

The files will be created into the folder you specified previously. The next time you will open this PowerPoint file you do not have to change the path because it has been saved.



You have to manage interactivity (sounds, animations) carefully, because these components will not be available on the printed version of the WebLibrary documentation.



I suggest to avoid sounds, unless they are absolutely needed.



In creating animations, you must be careful to insert the PowerPoint blocks (text, shapes, ...) at the right place, in order not to have overlapped items. Otherwise, the printed slide (which is the one you can see on the right side in the main web page) will appear wrong because of these items. For instance, the slide that is embedded into the web page contains all the objects. If some object is overlapped, they will be showed in that way.


PowerPoint source file

Although PowerPoint is able to edit (and modify) its own generated HTML files, I suggest to keep the original PPT file and make any modification on that file, then re-execute the ExportFiles macro. In fact, the files exported by PowerPoint are modified by WebLibrary and I cannot guarantee that these modifications are "transparent" for PowerPoint (i.e. that PowerPoint will still be able to open and work on these files).


Generated files

The ExportFiles macro generates two kinds of files:

  • a set of HTML files that are used to display the slide (including animations and such). These files are activated only when the user clicks on an image and a new browser window appears
  • a set of images (GIF files) that are used to display the content on the slide in the main web view.
Document Actions