An Easy Component to Embed PowerPoint

> Edraw Tip > An Easy Component to Embed PowerPoint
Posted by James Freeman |
An easy component to embed PowerPoint in a web page or form by using the office viewer component directly.

The PowerPoint component allows the developers to embed PowerPoint program anywhere in a web application or .net form by simply inserting com component.

Embed PowerPoint

Click Here to Download Office Viewer Component - Support Word, Excel, PowerPoint, Visio and Project

free download5 MB

This following codes describe an approach to displaying PowerPoint presentations within a web page using file.

This is how you use the office viewer component to host ms Excel document.

<object classid="clsid:7677E74E-5831-4C9E-A2DD-9B1EF9DF2DB4" id="OA1" width="100%" height="100%" codebase=",5,0,355">
<param name="Toolbars" value="-1">
<param name="BorderColor" value="15647136">
<param name="BorderStyle" value="2">

And this is how you display a PowerPoint presentation file on the fly.

function OpenFromServer()
var sPath= window.prompt("Type the file url:", "");
document.all.OA1.Open(sPath, "PowerPoint.Application");

The following script to play the slideshow automatically when the PowerPoint file opened in the component.

function OA1_DocumentOpened()
//You can do the office automation here
//var objWord = document.OA1.ActiveDocument;
//objWord.Content.Text = "You can do the office Automation with the Edraw Viewer Component.";


It's possible to use the above code in ASP, ASP.NET or PHP language. The PowerPoint component can be used at any programming language which supports ActiveX Control such as C#, WPF, Delphi, Perl, VB, VB.NET. The component supports seamless integration with PowerPoint 97, PowerPoint 2000, PowerPoint 2003, PowerPoint 2007 and PowerPoint 2010.

Embed MS Office in ASP.NET Program

Embedding MS Project

Embedding Visio

Disables MS Word Standard Command

Disable Office Ribbon Button

Show/Hide Office Menu Bar

download EdrawMind
main page

Get Started! You Will Love This Easy-To-Use Diagram Software

EdrawMax is an advanced all-in-one diagramming tool for creating professional flowcharts, org charts, mind maps, network diagrams, UML diagrams, floor plans, electrical diagrams, science illustrations, and more. Just try it, you will love it!