| Format.SaveAsVersion Property | 
 Description
Description
        Sets or returns the version of BarTender to which the document will be saved when the Format.Save or Format.SaveAs methods are used.
 Syntax
Syntax
        Format.SaveAsVersion = BtVersion
Where BtVersion can be set to any of the following constants.
| Constant | Value | Description | 
|---|---|---|
| btLatest | 0 | Always use the latest version of BarTender (Default) | 
| bt1010 | 1010 | Use version 10.1 | 
| bt1100 | 1100 | Use version 11.0 | 
| bt1110 | 1110 | Use version 11.1 | 
| bt1120 | 1120 | Use version 11.2 | 
| bt1130 | 1130 | Use version 11.3 | 
 Requirements
Requirements | Version | BarTender 10.1 or later | 
| Edition | Automation, Enterprise | 
 Remarks
Remarks
        The methods Format.SaveAs or Format.Save use the Format.SaveAsVersion property to save the document to a given BarTender version.
 VB.NET Example
VB.NET Example
        'Declare a BarTender application variable
Dim btApp As BarTender.Application
'Declare a BarTender document variable
Dim btFormat As BarTender.Format
'Create a new instance of BarTender
btApp = New BarTender.Application
'Set the BarTender application visible
btApp.Visible = True
'Open a BarTender document
btFormat = btApp.Formats.Open("c:\Format1.btw", False, "")
'Save the document as a version 7.75 file entitled called DemoAuto.btw
btFormat.SaveAsVersion = BarTender.BtVersion.bt775
btFormat.SaveAs("c:\DemoAuto.btw", True)
'End the BarTender process
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
 C# Example
C# Example
        // Declare a BarTender application variable
BarTender.Application btApp;
// Declare a BarTender document variable
BarTender.Format btFormat;
// Create a new instance of BarTender
btApp = new BarTender.Application();
// Set the BarTender application visible
btApp.Visible = true;
// Open a BarTender document
btFormat = btApp.Formats.Open("c:\\Format1.btw", false, "");
// Save the document as a version 7.75 file entitled DemoAuto.btw
btFormat.SaveAsVersion = BarTender.BtVersion.bt775;
btFormat.SaveAs("c:\\DemoAuto.btw", true);
// End the BarTender process
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);
Related Topics