Share via


PrintJobSettings Class

The PrintJobSettings class lets users access printers and their device settings.

Syntax

class PrintJobSettings extends Object

Run On

Called

Methods

  Method Description
Gg913050.pubmethod(en-us,AX.60).gif addTrayPageCopy
Gg913050.pubmethod(en-us,AX.60).gif allPages Controls whether the All or Pages option button should be selected when you run the sysPrintForm.
Gg913050.pubmethod(en-us,AX.60).gif appendToTextFile
Gg913050.pubmethod(en-us,AX.60).gif banding
Gg913050.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif clearTrayPageCopy
Gg913050.pubmethod(en-us,AX.60).gif clientPrintJobSettings
Gg913050.pubmethod(en-us,AX.60).gif collate
Gg913050.pubmethod(en-us,AX.60).gif copies
Gg913050.pubmethod(en-us,AX.60).gif copyDescription
Gg913050.pubmethod(en-us,AX.60).gif deviceName Selects a printer or retrieves the deviceName of the selected printer.
Gg913050.pubmethod(en-us,AX.60).gif disableBody
Gg913050.pubmethod(en-us,AX.60).gif doNotOverwrite
Gg913050.pubmethod(en-us,AX.60).gif enableBody
Gg913050.pubmethod(en-us,AX.60).gif enableCopies
Gg913050.pubmethod(en-us,AX.60).gif enableDevice
Gg913050.pubmethod(en-us,AX.60).gif enablePages
Gg913050.pubmethod(en-us,AX.60).gif enableProperties
Gg913050.pubmethod(en-us,AX.60).gif enableStoreInPrintArchive
Gg913050.pubmethod(en-us,AX.60).gif enableTarget
Gg913050.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif facename2number
Gg913050.pubmethod(en-us,AX.60).gif fileName
Gg913050.pubmethod(en-us,AX.60).gif finalize
Gg913050.pubmethod(en-us,AX.60).gif fitToPage
Gg913050.pubmethod(en-us,AX.60).gif format
Gg913050.pubmethod(en-us,AX.60).gif from
Gg913050.pubmethod(en-us,AX.60).gif getFacename
Gg913050.pubmethod(en-us,AX.60).gif getFacenameInfo
Gg913050.pubmethod(en-us,AX.60).gif getFontInfo
Gg913050.pubmethod(en-us,AX.60).gif getGlyphWidthsArray
Gg913050.pubmethod(en-us,AX.60).gif getNumberOfClientPrinters
Gg913050.pubmethod(en-us,AX.60).gif getNumberOfFacenames
Gg913050.pubmethod(en-us,AX.60).gif getNumberOfPrinters Returns the number of printers that are set up on the computer.
Gg913050.pubmethod(en-us,AX.60).gif getNumberOfServerPrinters
Gg913050.pubmethod(en-us,AX.60).gif getNumberOfTrays
Gg913050.pubmethod(en-us,AX.60).gif getPrinter Gets the deviceName of a printer.
Gg913050.pubmethod(en-us,AX.60).gif getRunOn
Gg913050.pubmethod(en-us,AX.60).gif getTarget
Gg913050.pubmethod(en-us,AX.60).gif getTextWidthInPPI Calculates the physical width of the specified string, given the current settings.
Gg913050.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif getTray
Gg913050.pubmethod(en-us,AX.60).gif getTrayName
Gg913050.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif hDC
Gg913050.pubmethod(en-us,AX.60).gif lockDestinationProperties
Gg913050.pubmethod(en-us,AX.60).gif mailCc
Gg913050.pubmethod(en-us,AX.60).gif mailSubject
Gg913050.pubmethod(en-us,AX.60).gif mailTo
Gg913050.pubmethod(en-us,AX.60).gif new Initializes a new instance of the Object class. (Overrides the new Method.)
Gg913050.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif numberOfCopyDescriptions
Gg913050.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif outputToClient
Gg913050.pubmethod(en-us,AX.60).gif outputToPrnFile
Gg913050.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif packNamesAndPrinterData
Gg913050.pubmethod(en-us,AX.60).gif packPageSettings Stores the data that is selected during page formatting in a container.
Gg913050.pubmethod(en-us,AX.60).gif packPrinterSettings
Gg913050.pubmethod(en-us,AX.60).gif packPrintJobSettings
Gg913050.pubmethod(en-us,AX.60).gif packSubtotalSettings
Gg913050.pubmethod(en-us,AX.60).gif pageCopy2Tray
Gg913050.pubmethod(en-us,AX.60).gif pageFormatting
Gg913050.pubmethod(en-us,AX.60).gif paperOrientation
Gg913050.pubmethod(en-us,AX.60).gif paperTray
Gg913050.pubmethod(en-us,AX.60).gif paperTrayRaw
Gg913050.pubmethod(en-us,AX.60).gif performanceTest
Gg913050.pubmethod(en-us,AX.60).gif preferredFileFormat
Gg913050.pubmethod(en-us,AX.60).gif preferredMailFormat
Gg913050.pubmethod(en-us,AX.60).gif preferredOrientation
Gg913050.pubmethod(en-us,AX.60).gif preferredTarget
Gg913050.pubmethod(en-us,AX.60).gif printerAttributes
Gg913050.pubmethod(en-us,AX.60).gif printerAveragePPM
Gg913050.pubmethod(en-us,AX.60).gif printerComment
Gg913050.pubmethod(en-us,AX.60).gif printerDatatype
Gg913050.pubmethod(en-us,AX.60).gif printerDefaultPriority
Gg913050.pubmethod(en-us,AX.60).gif printerDriverName
Gg913050.pubmethod(en-us,AX.60).gif printerLocation
Gg913050.pubmethod(en-us,AX.60).gif printerPageHeight
Gg913050.pubmethod(en-us,AX.60).gif printerPageWidth
Gg913050.pubmethod(en-us,AX.60).gif printerPaper
Gg913050.pubmethod(en-us,AX.60).gif printerParameters
Gg913050.pubmethod(en-us,AX.60).gif printerPortName
Gg913050.pubmethod(en-us,AX.60).gif printerPrinterName
Gg913050.pubmethod(en-us,AX.60).gif printerPrintProcessor
Gg913050.pubmethod(en-us,AX.60).gif printerPriority
Gg913050.pubmethod(en-us,AX.60).gif printerQueuedJobs
Gg913050.pubmethod(en-us,AX.60).gif printerRunOn
Gg913050.pubmethod(en-us,AX.60).gif printerSepFile
Gg913050.pubmethod(en-us,AX.60).gif printerServerName
Gg913050.pubmethod(en-us,AX.60).gif printerSettings
Gg913050.pubmethod(en-us,AX.60).gif printerShareName
Gg913050.pubmethod(en-us,AX.60).gif printerStartTime
Gg913050.pubmethod(en-us,AX.60).gif printerStatus
Gg913050.pubmethod(en-us,AX.60).gif printerUntilTime
Gg913050.pubmethod(en-us,AX.60).gif reportRun
Gg913050.pubmethod(en-us,AX.60).gif requestedDeviceName
Gg913050.pubmethod(en-us,AX.60).gif requestedRunOn
Gg913050.pubmethod(en-us,AX.60).gif rulerInch
Gg913050.pubmethod(en-us,AX.60).gif rulerMetric
Gg913050.pubmethod(en-us,AX.60).gif rulerOff
Gg913050.pubmethod(en-us,AX.60).gif runClient
Gg913050.pubmethod(en-us,AX.60).gif runServer
Gg913050.pubmethod(en-us,AX.60).gif sectionsPerPage
Gg913050.pubmethod(en-us,AX.60).gif setTarget Sets the print medium.
Gg913050.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif singleLargePage
Gg913050.pubmethod(en-us,AX.60).gif skipBitmapsInRTF Controls whether bitmaps are included when reports are printed to an .rtf file.
Gg913050.pubmethod(en-us,AX.60).gif storeInPrintArchive
Gg913050.pubmethod(en-us,AX.60).gif suppressScalingMessage
Gg913050.pubmethod(en-us,AX.60).gif to
Gg913050.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Overrides the toString Method.)
Gg913050.pubmethod(en-us,AX.60).gif unpackPageSettings Sets the page settings, such as paper size and orientation.
Gg913050.pubmethod(en-us,AX.60).gif unpackPrinterSettings
Gg913050.pubmethod(en-us,AX.60).gif unpackPrintJobSettings
Gg913050.pubmethod(en-us,AX.60).gif unpackSubtotalSettings
Gg913050.pubmethod(en-us,AX.60).gif unprintableBottom
Gg913050.pubmethod(en-us,AX.60).gif unprintableLeft
Gg913050.pubmethod(en-us,AX.60).gif unprintableRight
Gg913050.pubmethod(en-us,AX.60).gif unprintableTop Indicates the distance from the top of the paper to the printable area of the paper.
Gg913050.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif viewerType
Gg913050.pubmethod(en-us,AX.60).gif virtualPageHeight
Gg913050.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg913050.pubmethod(en-us,AX.60).gif warnIfFileExists
Gg913050.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)

Top

Remarks

PrintJobSettings is used by the SysPrintForm form.

Examples

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; 
}

Inheritance Hierarchy

Object Class
  PrintJobSettings Class
    ClientPrintJobSettings Class

See Also

ReportRun.prompt Method