Objet Format

ClosedDescription

The Format object represents a document saved in BarTender. Format objects hold the data and properties for a document that may or may not be open in BarTender.

ClosedFonctions

Nom

Description

CancelPrinting

Cancels the currently running print job.

FlushLog

Forces the Print Log buffer to output its contents to the file.

WriteToLog

Writes a raw string to the log file.

ClosedPropriétés

Nom

Description

BaseName

Returns the base name of the current document without the BTW extension. Lecture seule.

DbSupportsFieldNames

Returns whether the currently opened database supports field names. Lecture seule.

Répertoire

Returns the directory of the current document. Lecture seule.

FileName

Returns the name of the current document, including the directory path. Lecture seule.

IdenticalCopiesOfLabel

Returns the number of identical copies to be printed. Lecture seule.

IsNewRecord

Returns whether the print job has opened a new record. Lecture seule.

IsPrinting

Returns whether a print job is in progress. Lecture seule.

IsPrintPreview

Returns whether BarTender is preparing a print preview of the open document. Lecture seule.

IsPrompting

Returns whether the data entry form is displayed. Lecture seule.

MeasurementUnits

Sets or returns the units of measurement in the document. See BtUnits for available values.

Note:  This property is available only when you are editing script at a document level.

NumberSerializedLabels

Returns the items in a serialized sequence to be printed. Lecture seule.

Imprimante

Returns the name of the printer. Lecture seule.

StartingPosition

Sets or returns the starting position on a page of printer stock with multiple columns and/or rows.

Titre

Returns the document portion of the title bar for the current document. Not necessarily the same as the document file name, since a document name will not exist if the document has not yet been saved. Lecture seule.

Rubriques connexes