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