Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Printer To Name and Report Form to Printer command
Message
 
To
03/01/1999 01:55:34
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00172225
Message ID:
00172232
Views:
22
Hi Kam,

I don't know about VFP5 on WinNT, but the following works for me
on Win95 :

C_PRINTER = GETPRINTER()

IF !EMPTY(C_PRINTER)
SET PRINTER TO NAME (C_PRINTER)
REPORT FORM xxxxx NOCONSOLE TO PRINTER
ENDIF

Michel.
====================== Original message follows ===================

>Hi,
>
>I have this problem and hope somebody can help me out:
> I used Set Printer To Name command to select the printer I wanted to send output to. It wroks with ??? command and it
>doesn't seem to work with Report Form frmname To Print command.
>It always sends the output to the system default printer when I use
>the Report Form to Print command.
> I use getprinter() function return the printer I want and then do a
>set printer to name command. I thought it would send the subsequent
>output to the selected printer. But it didn't work with Report Form command. I tried not to use the Report Form command with the [Prompt] option.
> Can anybody point out the mistake I make and give me some suggestion ? By the way, I am using VFP 5.0 on Windows NT.
>
>Thanks in advance!
>
>Kam Lee
Previous
Reply
Map
View

Click here to load this message in the networking platform