A versatile cross-platform mind mapping tool.
Get from App Store
A versatile cross-platform mind mapping tool.
Get from App Store
What's New
Edraw Max online

An Easy Component to Embed PowerPoint

> Basic Diagram Knowledge > An Easy Component to Embed PowerPoint
Posted by James Freeman | 12/23/2019
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 officeviewer.cab 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="https://www.edrawsoft.com/download/officeviewer.cab#7,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:", "http://www.ocxt.com/demo/samples/sample.ppt");
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

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

Edraw Max is perfect not only for professional-looking flowcharts, organizational charts, mind maps, but also network diagrams, floor plans, workflows, fashion designs, UML diagrams, electrical diagrams, science illustration, charts and graphs... and that is just the beginning!