
445
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
When you import text into a table, in addition to setting
Constants.FS_FileIsText (16)
to
Constants.FV_DoImportAsTable (8)
, you must specify a value for the
Constants.FS_ImportTblTag (25)
property. If you set the
Constants.FS_TreatParaAsRow (28)
property to
True
, you must also specify a value for the
Constants.FS_CellSeparator (29)
property.
The property list returned by
GetImportDefaultParams()
does not specify values for the
Constants.FS_ImportTblTag (25)
and
Constants.FS_CellSeparator (29)
properties.
If you use the property list to import a table and do not specify a value for
Constants.FS_ImportTblTag (25)
,
Import()
fails and sets
FA_errno
to
Constants.FE_BadParameter (-43)
.
If you set
Constants.FS_TreatParaAsRow (28)
to
True
and do not specify a cell separator by setting
Constants.FS_CellSeparator (29)
,
Import()
fails and sets
FA_errno
to
Constants.FE_BadParameter (-43)
.
If
GetImportDefaultParams()
fails, the
Import()
method sets the
len
field of the returned
PropVals
structure to 0.
The
Import()
method returns the object that was imported, on success.
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
FA_errno
:
The property list returned to
importReturnParamspp
has the following properties:
Constants.FS_TreatParaAsRow (28)
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.
Error
Reason
Constants.FE_SystemError (-42)
System error, such as an unreadable file or insufficient memory.
Constants.FE_BadParameter (-43)
The property list contained an invalid parameter.
Constants.FE_BadFileType (-83)
The specified file exists, but it does not have the correct file type.
Constants.FE_MissingFile (-84)
The specified file does not exist.
Constants.FE_NoSuchFlow (-82)
The script specifies an import flow that does not exist.
Constants.FE_FailedState (-45)
Internal error.
Constants.FE_CircularReference (-81)
Importing the specified file causes a circular reference.
Constants.FE_FileClosedByClients (TBD)
The file was closed by a client before it could be imported.
Property
Meaning
Constants.FS_ImportedFileName (1)
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.
Constants.FS_ImportNativeError (2)
The error condition; normally the same value as
FA_errno
. If the file is imported successfully,
Constants.FS_ImportNativeError (2) is set to Constants.FE_Success (0).
Constants.FS_ImportStatus (3)
A bit field indicating what happened when the file was imported. See the following table for
more information.
Property
Meaning
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...