1. There are PCL comands for paper orientation, size, source...
For HP Laserjet:
- landscape chr(27)+'&l1O' (lowercase leter l, digit 1, uppercase letter O)
- paper size chr(27)+'&l#A' where # can be 1, 2, 3.... (Executive, Letter, Legal...)
- paper source chr(27)+'&l#H' where # is 0, 1, 2, 3, 4 (print&eject current page, tray 2, manual feed paper, manual feed envelope, tray 1...
You'll probably need the printer manual.
2. Build the report in the report generator, use an array for headers, and a generic cursor for data.
3. Build a baseRep.frx in the report generator and use it as a source for building a custom tempRep.frx each time you print a report.
Doru