PMPrinterGetCostProfile Method |
Gets a PMPrinter object representing a cost profile
Namespace: PM90SettingsAPI.PrinterAssembly: PM90SettingsAPI (in PM90SettingsAPI.dll) Version: 9.0.23.534 (9.0.23.534)
Syntax public static PMPrinter GetCostProfile(
string queuename = null
)
Parameters
- queuename (Optional)
- Type: SystemString
Name of the cost profile. Supplying null will pull the default cost profile.
Return Value
Type:
PMPrinterNew PMPrinter instance, or null if not found.
Exceptions Examples Setting costs on the default cost profile
try
{
PMPrinter profile = PMPrinter.GetCostProfile();
profile.SetCostPerPage(.10, .85, 25, null);
}
catch
{
}
See Also