OfficeControl Properties

Use

  • activateInPlace

    Controls whether the document is displayed in the browser window, or whether it is opened in a separate window in the Office application linked to the document type. For instance, if you have assigned value activateInPlace to property false, and value documentType to property ms_word, Microsoft Word opens and displays the content in the user interface of Microsoft Word. The default value for this property is true.

    If you have assigned value false to this property, you should assign small values to the height and width properties, because these values are not ignored, and act as placeholders in the Web Dynpro application view. The UI element takes up as much empty space in the view, as you specified for the height and width values. You should therefore overwrite the default values 300 with a smaller value, such as 5. If you have assigned value true to this property, you should use values to display the document that make the document readable, and do not necessitate too much scrolling, since users cannot enlarge the document in the browser window at runtime.

  • controlId

    The value of this property is set automatically. Do not enter any value here.

  • dataSource

    Data source. You can use it to specify the path to the context attribute, which makes the data available.

    If this property is not bound, a new document is created automatically in non-expert mode. Executing method opendocument in expert mode results in an error. Method createdocument can only be executed correctly.

    Primary Property

  • documentName

    Name of the document

  • documentType

    Type of document to be displayed

    Value

    Description

    ms_excel

    Microsoft Word document with extension xls

    ms_project

    Microsoft Project document with extension mpp.

    ms_word

    Microsoft Word document with extension doc

  • enableReadWrite

    This property is deprecated.

    Mode of the document to be opened: Controls whether the document can be edited and saved with the changed content.

  • expertMode

    Expert mode for complex operations (methods contained in the interfaces). If you set this property to true, additional method calls are available.

  • showDecoration

    Hides and shows menus.

  • virusScanProfile

    This property can be bound either in the View Designer to a context element or set with method CL_WD_FILE_UPLOAD->SET_VIRUS_SCAN_PROFILE.

    The virus scan profile must be set at least one roundtrip before the file is uploaded, otherwise it will be ignored. If no virus scan profile is specified, the standard virus scan profile is used.

    You can find the definitions of the virus scan profile in database table VSCAN_PROF.