Format.SaveAsVersion Property |
Sets or returns the version of BarTender to which the document will be saved when the Format.Save or Format.SaveAs methods are used.
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) |
bt610 |
610 |
Use version 6.10 |
bt620 |
620 |
Use version 6.20 |
bt700 |
700 |
Use version 7.00 |
bt710 |
710 |
Use version 7.10 |
bt750 |
750 |
Use version 7.50 |
bt770 |
770 |
Use version 7.70 |
bt772 |
772 |
Use version 7.72 |
bt773 |
773 |
Use version 7.73 |
bt774 |
774 |
Use version 7.74 |
bt775 |
775 |
Use version 7.75 |
bt800 |
800 |
Use version 8.00 |
bt801 |
801 |
Use version 8.01 |
bt901 |
901 |
Use version 9.01 |
bt910 |
910 |
Use version 9.1 |
bt920 |
920 |
Use version 9.2 |
bt930 |
930 |
Use version 9.3 |
Version |
BarTender 6.00 or higher |
Edition |
Automation, Enterprise Automation |
The methods Format.SaveAs or Format.Save use the Format.SaveAsVersion property to save the document to a given BarTender version.
'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)
// 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