
426
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Returns
Element
Syntax
NewBookComponentInHierarchy(compName, elemLoc)
Parameters
SilentPrintDoc
Description
The
SilentPrintDoc()
method prints a document or a book using the default print settings. Default print settings
are the settings that appear in the Print dialog box when the user attempts to print a document.
SilentPrintDoc()
initializes the print page size and printer name if they do not have values.
On success, the method returns
FE_Success
. On failure, the method sets
FA_errno
to one of the following values:
Returns
int
Syntax
SilentPrintDoc()
SimpleGenerate
Description
The
SimpleGenerate()
method generates files for a book.
The method performs the same operation as choosing
Update Book
from the book
Edit
menu.
You must set up the book and its generated files before calling
SimpleGenerate()
.
Error
Reason
Constants.FE_BadBookId (-66)
Invalid book.
Constants.FE_BadCompPath (-68)
Component name specified for compName is invalid.
Constants.FE_BadNew (-23)
The object cannot be created.
Constants.FE_BookUnStructured (-67)
The specified book is unstructured.
Parameter name
Data Type
Optional
Description
compName
string
No
The name of the component to add.
elemLoc
ElementLoc
No
The position at which to add the new component.
Error
Reason
Constants.FE_SystemError (-42)
Could not open or close the printer file.
Constants.FE_BadParameter (-43)
Parameter has an invalid value.