TGenericClientJobDescription* clientPart = new TGenericClientJobDescription;
clientPart->SetCopies(numberOfCopies); // number of copies
clientPart->SetPageRange(TStandardPageRange(2,5)); // pages 2 through 5
TPrinterprinter(kSystemPrinter); // This is temporary onlyThis creates a printer object representative of the system default printer. To get a job description, just ask the printer to create one for you.
// combine both client and printer job descriptions TPrintJobDescription jobDescription(printer.CreateJobDescription(),clientPart);The TPrintJobDescription object adopts both job description components so the client has no more dealings with either of them.
myPageFolio.Print(jobDescription);