Paxar 6039 Printer User Manual


 
Printing Functions 3-21
fOnDemand
Description
Determines the On-demand sensor’s current state. This sensor is an
option for the printer.
Syntax
Public bool OnDemand
Parameters
None
Return Values
TRUE
The sensor is blocked.
FALSE
The sensor is not blocked.
Example C#
using Ultra;
{
bool blnOnDemand;
Ultra.Print rPrint = new Print(); // Instantiate class
blnOnDemand = rPrint.fOnDemand; // If true
if (blnOnDemand)
{
MessageBox.Show("Blocked", "OnDemand Sensor",
MessageBoxButtons.OK,MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button1);
}
else // if false
{
MessageBox.Show("Not Blocked", "OnDemand Sensor",
MessageBoxButtons.OK,MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button1);
}
}