Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing from within VFP
Message
 
À
03/01/2001 14:24:04
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00459039
Message ID:
00459207
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform