!--a11y-->
OfficeControl 
You can use UI element OfficeControl to add an Office document to a view. This means you can display the following Office documents within a Web Dynpro application:
● Microsoft Word documents
● Microsoft Excel documents
The OfficeControl UI element is made available as an ActiveX control, so that the UI element can be displayed in browsers that support ActiveX controls.
For browsers which do not support ActiveX controls, the following runtime exception is raised: Office Integration through Applet is not supported.
The implementation of the OfficeControl UI element supports the following functions for the Office documents mentioned earlier:
● Open
● Close
● Backup
● Create new documents

Note that you can open and close a document by setting the visible property of the OfficeControl UI elements to visible or none.
Also note that the OfficeControl is only active when the visible property is set to visible. Background processing is activated when the visible property is set, and width and height = 0.
In the Expert Mode additional method calls for complex operations are provided.

The integration of active controls like OfficeControl in Web Dynpro ABAP popups is not supported.
Examples of the Display
|
|

To enable the development of accessible applications, the tooltip property is not checked during the syntax check.
Runtime Class |
CL_WD_OFFICE_CONTROL |
Properties in View Designer
Name |
Type |
Initial Value |
Bindable |
ID |
STRING |
(automatic) |
no |
WDY_BOOLEAN |
true |
yes |
|
STRING |
|
no |
|
STRING |
|
no |
|
STRING |
|
no |
|
STRING |
|
no |
|
STRING |
|
no |
|
XSTRING |
|
yes |
|
STRING |
|
yes |
|
WDUI_OFFICE_DOC_TYPE |
ms_word |
yes |
|
WDY_BOOLEAN |
true |
yes |
|
WDY_BOOLEAN |
true |
yes |
|
WDY_BOOLEAN |
false |
yes |
|
STRING |
300px |
yes |
|
WDY_BOOLEAN |
true |
yes |
|
Text |
|
yes |
|
STRING |
|
no |
|
WDUI_VISIBILITY |
visible |
yes |
|
STRING |
300px |
yes |
Events in View Designer
Name |

Other properties that can be inherited are defined in the associated higher-level classes. The associated UI elements are:
For dynamic programming, the same properties, events and aggregations are available as in the view designer. Bear in mind the different spellings.
Dynamic Programming of Properties
View Designer Name |
Runtime Name |
Type |
ACTIVATE_IN_PLACE |
WDY_BOOLEAN |
|
ADDITIONAL_ARCHIVES |
STRING |
|
ARCHIVE |
STRING |
|
CLASS_ID |
STRING |
|
CODE_BASE |
STRING |
|
CONTROL_ID |
STRING |
|
DATA_SOURCE |
XSTRING |
|
DOCUMENT_NAME |
STRING |
|
DOCUMENT_TYPE |
WDUI_OFFICE_DOC_TYPE |
|
documentType: ms_excel |
CL_WD_OFFICE_CONTROL=>E_DOCUMENT_TYPE-MS_EXCEL |
|
documentType: ms_word |
CL_WD_OFFICE_CONTROL=>E_DOCUMENT_TYPE-MS_WORD |
|
ENABLED |
WDY_BOOLEAN |
|
ENABLE_READ_WRITE |
WDY_BOOLEAN |
|
EXPERT_MODE |
WDY_BOOLEAN |
|
HEIGHT |
STRING |
|
SHOW_DECORATION |
WDY_BOOLEAN |
|
TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
TYPE |
STRING |
|
VISIBLE |
WDUI_VISIBILITY |
|
visible: none |
CL_WD_OFFICE_CONTROL=>E_VISIBLE-NONE |
|
visible: visible |
CL_WD_OFFICE_CONTROL=>E_VISIBLE-VISIBLE |
|
WIDTH |
STRING |
|
Dynamic Programming of Events
View Designer Name |
Runtime Name |
ON_CLOSE |
|
ON_SAVE |
You can find examples of this UI element in the system in collection sios.