Office Component - Disable Word, Excel, PowerPoint System Buttons

> Edraw Tip > Office Component - Disable Word, Excel, PowerPoint System Buttons
author
Posted by James Freeman |
Edraw office viewer component 8.x added support to disable the ms office main window system button: Minimize Box, Maximize Box and Close Button.

Disable Word, Excel, PowerPoint System Buttons

The Minimize Box, Maximize Box and Close Button in the document window have also been disabled.

disable document window button

To hide the whole title bar in the ribbon interface, you can call the document.OA1.ShowRibbonTitlebar (false) in BeforeDocumentOpened event.

To hide the whole ribbon interface, you can call the AxEDOffice1.Toolbars = False.

To disable the file menu in the ribbon interface, you need to add the following codes in the NotifyCtrlReady event.

function OA1_BeforeDocumentOpened()
{

document.OA1.DisableFileCommand(1, true);//wdUIDisalbeOfficeButton
document.OA1.DisableFileCommand(2, true);//wdUIDisalbeNew
document.OA1.DisableFileCommand(4, true);//wdUIDisalbeOpen

}

Embedding MS Excel in VB 6

Embedding MS Office in ASP.NET Program

Embedding MS Project

Embedding Visio

An Easy Way to Embed Excel in a Web Page

Embedded MS PowerPoint

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!