Click or drag to resize
PMPrinter Class
Representation of a print queue
Inheritance Hierarchy

Namespace: PM90SettingsAPI.Printer
Assembly: PM90SettingsAPI (in PM90SettingsAPI.dll) Version: 9.0.23.534 (9.0.23.534)
Syntax
C#
public class PMPrinter : PMRestrictable

The PMPrinter type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateCostProfile
Creates a cost profile by name, or returns existing profile by that name if already exists
Public methodDelete
Deletes this from database if application. I.e. is the non default cost profile. Thrown if the operation is invalid, such as deleting the default cost profile.
Public methodDisableRule
Disables the passed rule for this printer if enabled.
Public methodEnableRule
Enables the rule for this printer
Public methodStatic memberCode exampleGetCostProfile
Gets a PMPrinter object representing a cost profile
Public methodStatic memberGetCostProfiles
Returns all active cost profiles within the Print Manager Plus database
Public methodStatic memberGetDirectPrintQueue
Gets a PMPrinter object representing a tracked print queue
Public methodStatic memberGetPrintQueues
Returns all active direct print queues within the Print Manager Plus database
Public methodStatic memberGetPullPrintQueue
Gets a PMPrinter object representing a pull print queue
Public methodStatic memberGetPullPrintQueues
Returns all active pull print queues within the Print Manager Plus database
Public methodRefresh
Refreshes printer information, cost settings and restrictions
Protected methodRefreshRestrictions
Refreshes restriction list applied to this object
(Inherited from PMRestrictable.)
Public methodSetCostPerArea
Set basic costs per total square area.
Public methodSetCostPerLength
Set basic costs per total job length
Public methodSetCostPerPage
Set basic costs per page
Public methodCode exampleSetCostPerPageSize
Set cost per page size
Public methodSetCostProfile
Sets this printer or device to use the specified cost profile
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULT_COST_SETTINGS
null is used to request the default cost settings
Public fieldStatic memberDEFAULT_PULL_PRINT_QUEUE
null is used to request the default pull print queue
Top
Properties
  NameDescription
Public propertyBlackAndWhiteRestriction
The current black and white restriction on this object
(Inherited from PMRestrictable.)
Public propertyColorCostPerUnit
Current color cost per page, inch, or square inch depending on CostOption
Public propertyColorRestriction
The current Color restriction on this object
(Inherited from PMRestrictable.)
Public propertyCopiesRestriction
The current Copies restriction on this object
(Inherited from PMRestrictable.)
Public propertyCostLocation
The current location this printer or device gets its settings from.
Public propertyCostOption
The currently used cost option for this queue or device
Public propertyCostProfile
If the object is using a cost profile, this will hold a reference to it.
Public propertyDatabaseID
The printer's unique database identifier
(Overrides PMRestrictableDatabaseID.)
Public propertyDayTimeRestriction
The current DayTime restriction on this object
(Inherited from PMRestrictable.)
Public propertyDuplexDiscount
Indicates how much percentage of cost will be taken off the total cost when job is duplex
Public propertyDuplexRestriction
The current Duplex restriction on this object
(Inherited from PMRestrictable.)
Public propertyDuplicateRestriction
The current Duplicate restriction on this object
(Inherited from PMRestrictable.)
Public propertyEconomodeDiscount
Indicates how much percentage of cost will be taken off the total cost when job is economode
Public propertyIsDefault
Returns true if is the default for it's type, i.e. Default cost profile.
Remarks
Always false for queues where default is not applicable.
Public propertyJobCostRestriction
The current Page Costrestriction on this object
(Inherited from PMRestrictable.)
Public propertyJobSizeRestriction
The current Job Size restriction on this object
(Inherited from PMRestrictable.)
Public propertyMachineName
Server or Workstation name queue resides on.
Public propertyMonoCostPerUnit
Current black and white cost per page, inch, or square inch depending on CostOption
Public propertyOverriddenPageSizeCosts
Provides a list of page sizes that have a custom cost for this printer or cost profile. Will return null when cost by page size is not enabled, or if costs come from a profile
Public propertyPageCountRestriction
The current Page Count restriction on this object
(Inherited from PMRestrictable.)
Public propertyPageSizeRestriction
The current PageSize restriction on this object
(Inherited from PMRestrictable.)
Public propertyPrinterName
The name of the print queue within Windows
Public propertyPrinterType
The type of printer this instance represents
Public propertyRestrictions
Full list of all generic restrictions.
(Inherited from PMRestrictable.)
Public propertyRules
Returns all rules enabled on this printer
Public propertyShareName
The sharename of the print queue. Test for null prior to using
Public propertyTitleRestriction
The current Title restriction on this object
(Inherited from PMRestrictable.)
Top
See Also