Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Printer to Name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01221548
Message ID:
01221566
Vues:
12
Does this work?
set PRINTER TO NAME (GETPRINTER())
? set('printer',3) && pick a different printer to verify it changes later
=APRINTERS(myprinters)
for i = 1 TO ALEN(myprinters,1)
   IF "IMAGE WRITER" $ UPPER(myprinters(i,1))
       set PRINTER TO NAME (myprinters(i,1))
   endif
endfor
? set('printer',3)  && is the current printer the Image Writer Printer?
>If I use the prompt option in the report form and choose the "ImageRight Printer" it works, but when I set printer to name "ImageRight Printer" it does not. "ImageRight Printer" is a print driver that calls an image processing interphase, which allows me to store the output as an image and route the image accordingly.
>
>the following code works:
>
>report form (myreport) to printer prompt && ImageRight Printer is chosen
>
>but the following code does not
>
>myprinter = "ImageRight Printer"
>set printer to name (myprinter)
>report form (myreport) to printer
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform