Format Object

關閉描述

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.

關閉函數

名稱

描述

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.

關閉屬性

名稱

描述

BaseName

Returns the base name of the current document without the BTW extension.唯讀。

DbSupportsFieldNames

Returns whether the currently opened database supports field names.唯讀。

Directory

Returns the directory of the current document.唯讀。

FileName

Returns the name of the current document, including the directory path.唯讀。

IdenticalCopiesOfLabel

Returns the number of identical copies to be printed.唯讀。

IsNewRecord

Returns whether the print job has opened a new record.唯讀。

IsPrinting

Returns whether a print job is in progress.唯讀。

IsPrintPreview

Returns whether BarTender is preparing a print preview of the open document.唯讀。

IsPrompting

Returns whether the data entry form is displayed.唯讀。

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.唯讀。

印表機

Returns the name of the printer.唯讀。

StartingPosition

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

Title

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.唯讀。

相關主題