Creating a default job description

The default client job description specifies one copy and all pages to be printed. To use the default job description:

  1. Create the printer job component.
    Usually the system passes you a printer when you make a request or when the end user specifies a print operation by dragging a document onto a printer. You can also resurrect one you've kept with the folio or flattened in some data dictionary somewhere; you cannot create one from scratch.
    Currently, you must construct the printer before you can use it. Future releases of the system will provide
    TPrinter objects. To instantiate a
    printer, use:
        TPrinterprinter(kSystemPrinter);   // This is temporary only
    This creates a printer object representative of the system default printer. To get a job description, just ask the printer to create one for you.
          TPrintJobDescription
          jobDescription(printer.CreateJobDescription(),);
  2. Use the print job to print a job.
        myPageFolio.Print(jobDescription);

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker