| Format Object | 
 Description
Description
        Represents a BarTender document. Format objects hold the data and properties for a document that may or may not be open in BarTender.
For more information, refer to Using the Format Object.
 Requirements
Requirements
        | Version | BarTender 6.00 or higher | 
| Edition | Automation, Enterprise | 
 Methods
Methods| Name | Description | 
|---|---|
| Assigns focus to the document's window. | |
| Closes the BarTender document. | |
| Exports an image for specified pages of a document's print preview. | |
| Exports an image for a print preview page. | |
| Deprecated. Exports the user prompt data as an XML packet. | |
| Copies a bitmap representation of the document to the Clipboard. | |
| Creates an image of the document and saves it to an image file. | |
| Returns the value of a named data source. | |
| Returns the value of a specified data entry control. | |
| Prints the document and throws error messages as detected. | |
| Prints the document. | |
| Saves the document. | |
| Saves the document to a different file. | |
| Sets the template field name and sample data string list. | |
| Sets the value of a named data source. | |
| Sets the user input data for a single data entry control. | |
| Sets the user input data for multiple data entry controls. | |
| Enters a password for the active BarTender document. | 
 Properties
Properties
        | Name | Description | 
|---|---|
| Sets and returns the print option to automatically print again. | |
| Returns the base name. | |
| Sets and returns the comments for the document. | |
| Returns the directory of the BarTender document. | |
| Sets or returns the data entry settings in the active document. | |
| Sets or returns the encryption key of the active document. | |
| Returns the document's file name. | |
| Sets and returns the number of copies that are set in the Print dialog. | |
| Returns whether the document has been modified. | |
| Sets and returns the print job name. | |
| Sets and returns the units of measurement in the document. | |
| Returns a reference to the NamedSubStrings collection object. | |
| Sets and returns the number of serial numbers to print. | |
| Returns a reference to the DesignObjects collection object. | |
| Returns a reference to the PageSetup object. | |
| Sets and returns the paper tray that is used to print the job. | |
| Sets and returns the name of the printer. | |
| Returns a reference to the PrinterCodeTemplate object. | |
| Sets and returns the file name to be used when BarTender prints to a file. | |
| Returns a reference to the PrintSetup object. | |
| Sets and returns the print to file option. | |
| Sets and returns the print-to-file license. | |
| Returns the names and values of prompt objects in XML format. | |
| Sets and returns the record range string that determines which records are printed. | |
| Sets and returns the version of BarTender to which the document is saved when the Save or SaveAs methods are used. | |
| Sets or returns the "Select Records At Print Time" flag to prompt the user to select records to be printed. | |
| Returns whether the document supports identical copies. | |
| Returns whether the document supports serialization. | |
| Returns the title of the BarTender document. | |
| Sets or returns the current setting of the document option to use an attached database for printing. | |
| Returns a list of database field names, share names, or template names that are used on the templates in the document. | |
| Sets or returns the sample data for an object whose source is a database field. | |
| Returns a reference to the ViewRecordNavigator object. | 
 Events
Events
        | Name | Description | 
|---|---|
| Occurs when a new print job is created. | 
 Collections
Collections
        | Name | Description | 
|---|---|
| Manages the list of databases that are defined for a BarTender document. | |
| Manages the list of named data sources that are assigned to all objects on the templates. | 
Related Topics