PrintJobSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The PrintJobSettings class lets users access printers and their device settings.
public ref class PrintJobSettings : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class PrintJobSettings : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type PrintJobSettings = class
inherit XppObjectBase
Public Class PrintJobSettings
Inherits XppObjectBase
- Inheritance
- Derived
- Attributes
Remarks
PrintJobSettings is used by the SysPrintForm form.
The following example writes the name of the default printer and lists the available printers.
void printerInfo()
{
printJobSettings pjs;
int i;
pjs = new PrintJobSettings();
print "The default printer is ", pjs.DeviceName();
print "There are ", pjs.GetNumberOfPrinters(), " printers";
i = 1;
while (i<=pjs.GetNumberOfPrinters())
{
print "Printer No. ", i, " is ", pjs.GetPrinter(i);
i++;
}
pause;
}
Constructors
PrintJobSettings() | |
PrintJobSettings(IntPtr) | |
PrintJobSettings(Object[], Boolean) | |
PrintJobSettings(Object[]) |
Fields
__k_PrintJobSettingsId | |
kernelClass | (Inherited from XppObjectBase) |