Your full service technology partner! 
-Collapse +Expand
Search Paradox Group:

-Collapse +Expand Paradox To/From
-Collapse +Expand Paradox Store

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox Reports Topic   Print This     

Setting up a report to use a specific paper tray

Setting up a report to use a specific paper tray in Paradox Reports topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Setting   specific   Setting up   Setting up report   use specific   paper tray  

I am relatively amateurish in developing applications, but have been doing it on and off for many years.

I am setting up an application for my daughter's rural veterinary business that will store information about her business, clients and animals and which  will print invoices and statements of account for her clients.

She runs Windows 7 operating system and has Corel Office X4 installed on a small network of two computers and two printers.

My problem is that I want the invoices to print on her Lexmark T632 printer, which works okay, but I cannot find a way of telling the application to take the paper from Tray 2 on that printer.

Is there some code I can write into the application that directs the report to a particular tray on the printer?

Tony Hynes

 Posted 10 years ago (Thread Starter)
Comment Quote
About afhynes2 -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14185, 2 reply
Thread Started 6/22/2010 1:56:47 AM
View Counter=3634
Last Reply Posted 2/5/2014 3:12:03 PM)
Location=WANNIASSA, -- UNK 
Joined=10 years ago   MB Posts=6   KB Comments=1  
Mike Prestwood
Prestwood IT
Prestwood IT office in Citrus Heights, CA

Use the printerSetOptions() procedure along with a PrinterOptionInfo type variable to to set the paper tray, paper size, etc.

Given a PrinterOptionInfo variable named prnOptions, use the following line of code to set your printer to the lower tray:

; Use constant to specify lower paper tray.
prnOptions.DefaultSource = prnLower


Here is a list of all the PrintSource constants:

  • prnAuto - Paper source selected automatically
  • prnCassette - Cassette
  • prnEnvelope - Envelope, automatic feed
  • prnEnvManual - Envelope, manual feed
  • prnLargeCapacity - Large capacity paper source
  • prnLargeFmt - Large format paper source
  • prnLower - Lower paper tray
  • prnManual - Manual feed
  • prnMiddle - Middle paper tray
  • prnOnlyOne - Single paper tray
  • prnSmallFmt - Small format paper source
  • prnTractor - Tractor feed paper
  • prnUpper - Upper paper tray

The PrintSource constants above are used with the DefaultSource field of the PrinterOptionInfo record structure.

The following is the PrinterOptionInfo structure:

  • Orientation - Paper orientation (portrait or landscape). Use a PrinterOrientation constant to test the value.
  • PaperSize - Paper size. Use a PrinterSizes constant to test the value.
  • PaperWidth - Custom paper width in twips (maximum of 64K twips). This value is converted internally to the tenths of a millimeter required by Windows.
  • PaperLength - Custom paper length in twips (maximum of 64K twips). This value is converted internally to the tenths of a millimeter required by Windows.
  • Scale - Scaling factor in percent. A scale value of 50 reduces the original to one-half its size. A value of 200 increases the original to twice its size. Scaling only applies to printers that support scaling for all functions, graphics, and fonts (e.g., Postscript printers and the Microsoft Windows Printing System).
  • Copies - Number of copies for the printer to make. The Copies option works only with page printers (e.g., laser printers) where the full page can be held in printer memory. Some printer drivers support this feature on printers that cannot do full page printing.
    The Copies setting is equivalent to unchecking the Collate button in the Print File dialog box. Output is not collated. This operation is faster than repeatedly sending the full document to the printer, but requires hand sorting at completion.
  • DefaultSource - Bin, tray, or feeder used by the default printer. Use a PrintSources constant to test the value.
  • PrintQuality - Higher print qualities are used for final output, and lower print qualities for draft output. Lower quality prints differ significantly from the preview appearance of the document. Use a PrintQuality constant to test the value.
  • Color - Sets color printers to color or monochrome printing. Monochrome printing is usually faster. Use a PrintColor constant to test the value.
  • Duplex - Double-sided printing. Some printer drivers can support double-sided printing on otherwise single-sided printers by making two passes over the document. Use a PrintDuplex constant to test the value.

 Refer to the ObjectPAL help file for details or ask questions here.

Mike Prestwood
Prestwood IT Solutions

 Posted 10 years ago
Comment Quote
About Mike Prestwood -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Mike Prestwood

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Web Presence
Facebook, Prestwood IT Facebook page -- fan page. (Visit Me)
Twitter, Follow Prestwood IT on Twitter. (Visit Me)
LinkedIn, Prestwood IT company page on LinkedIn. (Visit Me)
YouTube, Prestwood IT YouTube Channel (Visit My Channel)
Website, My drum website where I sell my drum books. (

Post ID #14186 (Level 1.1)  Reply to 14185
Thread Started 6/22/2010 7:25:21 AM
Location=Prestwood IT office in Citrus Heights, CA 
Joined=20 years ago   MB Posts=1410   KB Posts=1805   KB Comments=69   BLOG, Topics=4  
Most Recent Post
Anonymous Post

Is there an option to declare paper type such as Letterhead?

 Posted 6 years ago
Comment Quote

Post ID #15105 (Level 2) and Parent is 14185
Reply Posted 2/5/2014 3:08:34 PM

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1311A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #14185 Counter
Since 6/22/2010


Linked Knowledge Base Article.

This thread is linked to the following KB article.

Mike Prestwood
1. Power: Chapter 12, Handling Reports

Chapter 12, "Handling Reports" from Paradox 9 Power Programming by Mike Prestwood.

Posted to KB Topic: P9 Book: Power Programming
17 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit

Corel Paradox / ObjectPAL Coding

Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site:

©1995-2020 Prestwood IT Solutions.   [Security & Privacy]