Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why won't this work (for me)?
Message
From
12/08/1999 13:59:04
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00252698
Message ID:
00253128
Views:
22
>Try the following:

> Add a new local printer through the Add Printer Wizard. Select the appropriate printer driver for creating output for the HP (if you're trying to be very generic, try the HP Laserjet Series II driver.) When prompted for a port, select FILE:, and give the printer a name (I use HPTOFILE for mine.)

> If you give the new printer definition the name HPTOFILE, when you do your REPORT, try the following commands:

> SET PRINTER TO HPTOFILE
> REPORT FORM G:\DB\SUBD\RPT_ALFA.FRX TO PRINT NOCONSOLE

> This will bring up a dialog box that allows you to specify the name and location for the printed output. There are some distinctive advantages to doing this, for example, if you use TrueType fonts that may not be present on the system printing the file after copying it to disk, you can choose to handle TrueType fonts either by downloading them as bitmaps as a part of the output stream, or simply convert the output to a pure graphical format. AFAIK,
there's no way to avoid the file selection dialog, unfortunately.

> Alternatively, if your default printer is an HP with appropriate format, this might work:

> SET PRINTER TO name of print file to create

> SET PRINTER TO G:\DB\REPORTS\TEST.TXT
> REPORT FORM G:\DB\SUBD\RPT_ALFA.FRX TO PRINT NOCONSOLE
> SET PRINTER TO


Thanks for you help. I was able to make it work by creating a new printer definition that writes to a file. I did find that if I use:

SET PRINTER TO HPTOFILE
REPORT FORM G:\DB\REPORTS\ALPHA5.FRX TO FILE D:\TEST.HP2

that I don't get the file selection dialog box. Thanks again to all for your time and tips!
Jim Philippi

quando omni flunkus moritati
Previous
Reply
Map
View

Click here to load this message in the networking platform