Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing from within VFP
Message
 
To
03/01/2001 14:24:04
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00459039
Message ID:
00459207
Views:
21
>Try:
> SET PRINTER TO
After the printing is complete. This closes the printer.
**********************************
with thisform
if .SendTo.Printer.Value=1
UserPrinter=GETPRINTER()
UserPrinter=["]+UserPrinter+["]
if len(UserPrinter)>2 && Perhaps something is there
set printer to name &UserPrinter
OkayToPrint=.t.
Else
OkayToPrint=.f.
Endif && Okay to print yes/no
Else && Out something other than printer
if .SendTo.Preview.Value=1 && Out to file
SET PRINTER TO _SCRATCH.TXT
OkayToPrint=.t.
Endif && File
Endif && Printer
if OkayToPrint
do AT_X_Y_Report
Endif
set printer to
endwith

>
>
>Guy
>
>
>>When I run a program that has SET DEVICE TO PRINT, then @ say statements, then SET DEVICE TO SCREEN, I need to quit VFP before anything prints to my printer.
>>Any suggestions as to what to try to fix this?
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform