Application.Save Method

ClosedDescription

Saves all open BarTender documents.

ClosedSyntax

Application.Save(DoPrompt)

Where DoPrompt is a boolean value.

ClosedRequirements

Version

BarTender 6.00 or higher

Edition

Automation, Enterprise Automation

ClosedRemarks

The Save method saves all open BarTender documents. If DoPrompt is true and changes have been made, then you will be prompted to save changes. If DoPrompt is false, all changes will be saved without displaying a prompt.

ClosedVB.NET Example

'Declare a BarTender application variable

Dim btApp As BarTender.Application

'Create a new instance of BarTender variable

btApp = New BarTender.Application

'Set the BarTender application visible

btApp.Visible = True

'Save open documents without prompting

btApp.Save(False)

'End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)

ClosedC# Example

// Declare a BarTender application variable

BarTender.Application btApp;

// Create a new instance of BarTender

btApp = new BarTender.Application();

// Set the BarTender application visible

btApp.Visible = true;

// Save open documents without prompting

btApp.Save(false);

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

Related Topics