// 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;
// Display whether or not BarTender is printing
if(btApp.IsPrinting == true)
{
MessageBox.Show("BarTender is printing");
}
else
{
MessageBox.Show("BarTender is not printing");
}
// End the BarTender process
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);