File object (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Represents the document file associated with an app for Office.

Last modified: June 12, 2014

Properties

Name

Description

size

Gets the document file size in bytes.

sliceCount

Gets the number of slices into which the file is divided.

Methods

Name

Description

closeAsync

Closes the document file.

getSliceAsync

Returns the specified slice.

Access the File object with the AsyncResult.value property in the callback function passed to the Document.getFileAsync method.

App types

Content apps, Task pane apps

Supported clients

PowerPoint 2013, PowerPoint 2013 SP1, PowerPoint 2013 RT, Word 2013, Word 2013 SP1, Word 2013 RT

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft