TX Text Control .NET Server

LoadDocumentCallbackData Object

Object

Description

The type of the result parameter of the LoadDocumentCallback callback function.

Syntax

{
   author: <string>,
   bytesRead: <number>,
   creationDate: <number>,
   creatorApplication: <string>,
   cssFileName: <string>,
   documentKeywords: <string[]>,
   documentPartName: <string>,
   documentSubject: <string>,
   lastModificationDate: <number>,
   loadedFile: <string>,
   loadedStreamType: <StreamType>,
   pageMargins: <Object>,
   pageSize: <Size>
}

Examples

The following example demonstrates LoadDocumentCallbackData in a practical document-editing workflow. The type of the result parameter of the LoadDocumentCallback callback function.

function inspectLoadDocumentCallbackData(loadDocumentCallbackData) {
    console.log("author:", loadDocumentCallbackData.author);
    console.log("bytes read:", loadDocumentCallbackData.bytesRead);
    console.log("creation date:", loadDocumentCallbackData.creationDate);
    console.log("creator application:", loadDocumentCallbackData.creatorApplication);
}

Members

Properties

PropertyDescription
authorThe document's author
bytesReadThe number of bytes read during the load operation.
creationDateThe document's creation date.
creatorApplicationThe application, which has created the document.
cssFileNameThe path and filename of the CSS file belonging to an HTML or XML document.
documentKeywordsThe document's keywords.
documentPartNameSpreadsheetML only. The name of the part of the loaded document.
documentSubjectThe document's subject string.
lastModificationDateThe date the document is last modified.
loadedFileThe name and path of the file that has been loaded.
loadedStreamTypeThe StreamType of the file that has been loaded.
pageMarginsThe margins of the loaded document's pages.
pageSizeThe width and height of the loaded document's pages.