Format.SaveAsVersion Property

ClosedDescription

Sets or returns the version of BarTender to which the document will be saved when the Format.Save or Format.SaveAs methods are used.

ClosedSyntax

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

bt940

940

Use version 9.4

bt1000

1000

Use version 10.0

bt1010

1010

Use version 10.1

bt1100

1100

Use version 11.0

bt1110

1110

Use version 11.1

bt1120

1120

Use version 11.2

ClosedRequirements

Version

BarTender 6.00 or later

Edition

Automation, Enterprise

ClosedRemarks

The methods Format.SaveAs or Format.Save use the Format.SaveAsVersion property to save the document to a given BarTender version.

ClosedVB.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)

ClosedC# 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