Application.IsPrinting Property

ClosedDescription

Returns whether or not BarTender is currently printing a document. Read-only.

ClosedSyntax

Application.IsPrinting

ClosedRequirements

Version

BarTender 6.00 or higher

Edition

Automation, Enterprise Automation

ClosedRemarks

The IsPrinting property returns true if BarTender is currently printing.

ClosedVB.NET Example

'Declare a BarTender application variable

Dim btApp As BarTender.Application

'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 Then

MessageBox.Show("BarTender is printing")

Else

MessageBox.Show("BarTender is not printing")

End If

'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;

// 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);

Related Topics