Adobe 65030365 - FrameMaker - PC Manual page 453

Scripting guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Property
Constants.FS_TreatParaAsRow (28)
When you import text into a table, in addition to setting
Constants.FV_DoImportAsTable (8)
property. If you set the
Constants.FS_TreatParaAsRow (28)
Constants.FS_CellSeparator (29)
The property list returned by
Constants.FS_ImportTblTag (25)
If you use the property list to import a table and do not specify a value for
fails and sets
Import()
FA_errno
If you set
Constants.FS_TreatParaAsRow (28)
Constants.FS_CellSeparator (29)
If
GetImportDefaultParams()
The
method returns the object that was imported, on success.
Import()
Note: Import() returns 0 on success, if it imports a copy or a graphic inset.
On failure, the method assigns one of the following values to
Error
Constants.FE_SystemError (-42)
Constants.FE_BadParameter (-43)
Constants.FE_BadFileType (-83)
Constants.FE_MissingFile (-84)
Constants.FE_NoSuchFlow (-82)
Constants.FE_FailedState (-45)
Constants.FE_CircularReference (-81)
Constants.FE_FileClosedByClients (TBD)
The property list returned to
Property
Constants.FS_ImportedFileName (1)
Constants.FS_ImportNativeError (2)
Constants.FS_ImportStatus (3)
Meaning
Convert each line in the text file into a row of table cells and use Constants.FS_CellSeparator
(29) and Constants.FS_NumCellSeparators (30) to determine how to divide the line into
separate cells, if Constants.FS_FileIsText (16) is set to Constants.FV_DoImportAsTable (8).
Constants.FS_TreatParaAsRow (28) is set to either True or False.
True - Convert each line into a row of table cells.
False - Convert each line into a table cell instead.
Constants.FS_FileIsText (16)
, you must specify a value for the
property.
GetImportDefaultParams()
and
Constants.FS_CellSeparator (29)
to
Constants.FE_BadParameter (-43)
to
True
,
fails and sets
Import()
fails, the
method sets the
Import()
Reason
System error, such as an unreadable file or insufficient memory.
The property list contained an invalid parameter.
The specified file exists, but it does not have the correct file type.
The specified file does not exist.
The script specifies an import flow that does not exist.
Internal error.
Importing the specified file causes a circular reference.
The file was closed by a client before it could be imported.
has the following properties:
importReturnParamspp
Meaning
A string specifying the source file's path. If you scripted Constants.FS_ShowBrowser (1), this path
can be different from the one you specified in the Import script.
The error condition; normally the same value as
Constants.FS_ImportNativeError (2) is set to Constants.FE_Success (0).
A bit field indicating what happened when the file was imported. See the following table for
more information.
Last updated 9/26/2011
Constants.FS_ImportTblTag (25)
property to
, you must also specify a value for the
True
does not specify values for the
properties.
Constants.FS_ImportTblTag (25)
.
and do not specify a cell separator by setting
to
FA_errno
Constants.FE_BadParameter (-43)
field of the returned
len
:
FA_errno
FA_errno
. If the file is imported successfully,
445
to
,
.
structure to 0.
PropVals

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 10

Table of Contents