PrintJobSettings Class

Definition

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
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
PrintJobSettings
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[])
PrintJobSettings(Object[], Boolean)

Fields

__k_PrintJobSettingsId
kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
addTrayPageCopy(Int32, Int32)
addTrayPageCopy(Int32, Int32, Int32)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
allPages()

Controls whether the All or Pages option button should be selected when you run the sysPrintForm.

allPages(Boolean)
appendToTextFile()
appendToTextFile(Boolean)
banding()
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
clearTrayPageCopy()
clientPrintJobSettings()
collate()
collate(Boolean)
copies()
copies(Int32)
copyDescription(Int32)
copyDescription(Int32, String)
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
deviceName()

Selects a printer or retrieves the deviceName of the selected printer.

deviceName(String)
deviceName(String, ClassRunMode)
disableBody()
disableBody(Int32)
doNotOverwrite()
doNotOverwrite(Boolean)
enableBody()
enableBody(Int32)
enableCopies()
enableCopies(Boolean)
enableDevice()
enableDevice(Boolean)
enablePages()
enablePages(Boolean)
enableProperties()
enableProperties(Boolean)
enableStoreInPrintArchive()
enableStoreInPrintArchive(Boolean)
enableTarget()
enableTarget(Boolean)
equal(XppObjectBase) (Inherited from XppObjectBase)
facename2number()
facename2number(String)
fileName()
fileName(String)
finalize()
fitToPage()
fitToPage(Boolean)
format()
format(PrintFormat)
from()
from(Int32)
getFacename(Int32)
getFacenameInfo(Int32)
getFontInfo(String)
getGlyphWidthsArray(String, Int32, Int32)
GetIntPtr() (Inherited from XppObjectBase)
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getNumberOfClientPrinters()
getNumberOfFacenames()
getNumberOfPrinters()

Returns the number of printers that are set up on the computer.

getNumberOfServerPrinters()
getNumberOfTrays()
getPrinter(Int32)

Gets the deviceName of a printer.

getRunOn(Int32)
getTarget()
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getTray(Int32)
getTrayName(Int32)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
hDC()
IsManagedValid() (Inherited from XppObjectBase)
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
lockDestinationProperties()
lockDestinationProperties(Boolean)
mailCc()
mailCc(String)
mailSubject()
mailSubject(String)
mailTo()
mailTo(String)
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod()

Initializes a new instance of the Object class.

newmethod(Object[])
newmethod(Object[], Boolean)
notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
numberOfCopyDescriptions(Int32)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
outputToClient()
outputToClient(Boolean)
outputToPrnFile()
outputToPrnFile(Boolean)
packNamesAndPrinterData()
packPageSettings()

Stores the data that is selected during page formatting in a container.

packPrinterSettings()
packPrintJobSettings()
packSubtotalSettings()
pageCopy2Tray(Int32)
pageCopy2Tray(Int32, Int32)
pageFormatting()
paperOrientation()
paperOrientation(PrinterOrientation)
paperTray()
paperTray(Int32)
paperTrayRaw()
paperTrayRaw(Int32)
performanceTest()
performanceTest(Int32)
preferredFileFormat()
preferredFileFormat(PrintFormat)
preferredMailFormat()
preferredMailFormat(PrintFormat)
preferredOrientation()
preferredOrientation(PrinterOrientation)
preferredTarget()
preferredTarget(PrintMedium)
printerAttributes()
printerAveragePPM()
printerComment()
printerDatatype()
printerDefaultPriority()
printerDriverName()
printerLocation()
printerPageHeight()
printerPageWidth()
printerPaper()
printerParameters()
printerPortName()
printerPrinterName()
printerPrintProcessor()
printerPriority()
printerQueuedJobs()
printerRunOn()
printerSepFile()
printerServerName()
printerSettings(String)
printerSettings(String, xArgs)
printerSettings(String, xArgs, ReportRun)
printerSettings(String, xArgs, ReportRun, Int32)
printerShareName()
printerStartTime()
printerStatus()
printerUntilTime()
reportRun()
requestedDeviceName()
requestedRunOn()
rulerInch()
rulerMetric()
rulerOff()
runClient()
runServer()
sectionsPerPage()
sectionsPerPage(Int32)
setTarget(PrintMedium)

Sets the print medium.

setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
singleLargePage()
singleLargePage(Boolean)
skipBitmapsInRTF()

Controls whether bitmaps are included when reports are printed to an .rtf file.

skipBitmapsInRTF(Boolean)
storeInPrintArchive()
storeInPrintArchive(Boolean)
suppressScalingMessage()
suppressScalingMessage(Boolean)
to()
to(Int32)
ToString()

Returns a string that represents the current object.

unpackPageSettings(Object[])

Sets the page settings, such as paper size and orientation.

unpackPrinterSettings(Object[])
unpackPrintJobSettings(Object[])
unpackSubtotalSettings(Object[])
unprintableBottom()
unprintableLeft()
unprintableRight()
unprintableTop()

Indicates the distance from the top of the paper to the printable area of the paper.

usageCount() (Inherited from XppObjectBase)
VerifyKernelClass() (Inherited from XppObjectBase)
viewerType()
viewerType(ReportOutputUserType)
virtualPageHeight()
virtualPageHeight(Int32)
wait() (Inherited from XppObjectBase)
warnIfFileExists()
warnIfFileExists(Boolean)
Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to