InDesign Server2025
API 20.5.0.49
Object

ExcelImportPreference

Excel import preferences.

Preference ExcelImportPreference
Hierarchy

Application

ExcelImportPreference

Properties

NameType AccessDescription
AlignmentStyleOptions
read/write The cell alignment for the imported document.
Number read/write The number of decimal places to include. Note: Valid only when alignment style is decimal.
Number read/write The import error code. (Key: 0=Success; 1=Empty Sheet; 2=Invalid sheet; 3=Invalid range; 4=Invalid View; 5=Misc. Error)
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean readonly Returns true if the object specifier resolves to valid objects.
Application readonly The parent of the ExcelImportPreference (a Application).
Boolean read/write If true, preserves inline graphics.
Object read/write A property that allows setting of several properties at the same time.
String read/write The range of cells to import. Note: Use a colon (:) to separate the start and end cell names in the range.
Number read/write The worksheet's index. For information, see sheet name.
String read/write The worksheet to import.
Boolean read/write If true, shows hidden cells.
TableFormattingOptions
read/write The format for imported spreadsheets.
Boolean read/write If true, convert straight quotes and apostrophes in the imported text to typographic quotation marks and apostrophes.
String read/write The stored custom or personal view(s) to import with the file.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
ExcelImportPreference[]

Resolves the object specifier, creating an array of object references.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Generates a string which, if executed, will return the ExcelImportPreference.

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a ExcelImportPreference.

Return 1

Methods that return a ExcelImportPreference.