Article ID: 265385 - Last Review: April 4, 2006 - Revision: 4.4 INFO: Automation of PowerPoint 97 and PowerPoint 2000 ViewersThis article was previously published under Q265385 SUMMARY
The Microsoft PowerPoint 97 and 2000 Viewers support a limited Automation model that developers can use to programmatically start a slide show. This article provides general information about using Automation to control the PowerPoint Viewer, and details some of the known problems and restrictions when using the viewer.
MORE INFORMATION
To automate the PowerPoint Viewer on a client system, the viewer must be installed and run at least once to properly register the application as an Automation server. To download and install the viewer, clients can go to the following Microsoft Web site and obtain a copy of the PowerPoint Viewer:
Microsoft Office Converters and Viewers
To automate the viewer and start a slide show, you create an instance of the PowerPointViewer.Application object, and then call the NewShow method, passing a path to the presentation file to start. For example, you could use the following Visual Basic code to start and then stop a new presentation in the viewer:
http://office.microsoft.com/en-us/downloads/HA010449811033.aspx (http://office.microsoft.com/en-us/downloads/HA010449811033.aspx)
Run-time error '48': Error loading DLL.
-or-
0x80029C4A (TYPE_E_CANTLOADLIBRARY): Error loading type library/DLL.
(http://msdn.microsoft.com/workshop/misc/cpad/
(http://msdn.microsoft.com/workshop/misc/cpad/)
)
If you want to run the PowerPoint Viewer from a CD-ROM, you cannot use Automation to start the viewer. Automation requires the viewer to be properly installed and run once (for registration) before you can have COM create a new instance.
For additional information on using the PowerPoint Viewer from a CD-ROM, click the article number below
to view the article in the Microsoft Knowledge Base:
241493
(http://support.microsoft.com/kb/241493/EN-US/
)
PPT2000: How to Distribute Presentations on CD-ROM
Instead of Automation, developers may choose to shell a PowerPoint file (*.ppt) to start a slide show and let it run. In addition, the PowerPoint viewer supports the use of a list file (*.lst) to allow for the playing of multiple presentations, one right after the other.
For additional information about using a list file, click the article number below
to view the article in the Microsoft Knowledge Base:
190091
(http://support.microsoft.com/kb/190091/EN-US/
)
PPT97: How to Write and Use a List File in PowerPoint Viewer
When viewing a presentation in the viewer, developers should take into consideration that there are other limitations that could affect their design, such as:
238366
(http://support.microsoft.com/kb/238366/
)
PPT2000: Animated GIF Images Don't Work in the Viewer
172440
(http://support.microsoft.com/kb/172440/EN-US/
)
PPT97: NewShow Method Doesn't Start Slide Show If Viewer Running
172369
(http://support.microsoft.com/kb/172369/EN-US/
)
PPT97: Viewer Quit Method Does Not Close Viewer
REFERENCES
You may find addtional information about the PowerPoint Viewer from one of the following Knowldge Base articles:
171327
(http://support.microsoft.com/kb/171327/EN-US/
)
PPT97: Files and Locations Installed by PowerPoint Viewer 97
| Article Translations
|

Back to the top
