Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing with a .PRG file
Message
From
09/03/2001 22:45:36
 
 
To
09/03/2001 21:26:57
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00483766
Message ID:
00483774
Views:
8
>I have a report that is not the same (column headers & data source fields) each time it is printed. Therefore I am using a .prg file to do this report. If anyone has any suggestions on using the report generator, I love to hear them as this was my solution. This report needs to be printed landscape which means that I have set the print driver to print landscape...this is OK (this is the ONLY report that goes to this printer; paper size is 11x17) BUT!!!! I would like to get the app running without depending on the driver being set to landscape and the paper size set to 11x17. I can change the font & font size in the .prg, does anyone know if the is something for paper orientation & size that can been controlled with a .prg. Of course if this report could be done in a report file, then all this is mute. Thank you for any help.

Hi Kimberley,

AFAIK you've got a couple of options.

1. Create another instance of the printer driver in use. For example, if they have an HP LaserJet 4, their installed printer will probably be called "HP LaserJet 4" and have a Portrait orientation. Install another printer, using the same driver to the same port, and call it "HP LaserJet 4 - Landscape", setting its orientation to Landscape. That way you don't have to worry about the current orientation setting, you just select the printer you want to use e.g. REPORT FORM ... PROMPT PREVIEW.

If you go this route you'll need to strip the printer-specific information out of the .FRX/.FRT. There are threads here that explain how to do that, probably an FAQ as well.

2. Pre-pend print control codes to the job as it's printed. This is probably not viable unless you know exactly what printer you're going to.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform