Open topic with navigation
Saves all open BarTender documents.
Application.Save(DoPrompt)
Where DoPrompt is a Boolean value.
Version
BarTender 6.00 or higher
Edition
Automation, Enterprise
The Save method saves all open BarTender documents. If DoPrompt is true and changes were made, then you are prompted to save changes. If DoPrompt is false, all changes are saved without displaying a prompt.
'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)
// 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