Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts the user’s or the applications’s specified range to an HTML fragment that can be shared.
![]() |
Syntax
var retVal = MSApp.createDataPackage(object);
Parameters
object [in]
Type: anyThis range can be created either from a
selection
object (for example,window.selection.getRangeAt(0)
) or manually.
Return value
Type: any
Contains the HTML markup for the specified range.
Remarks
This method supports only Document Object Model (DOM)Range
, not TextRange. The returned data package for the specified range contains HTML markup in clipboard format.
Note There are no available properties for the returned data package.