Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp7 Printer Controls
Message
 
 
À
03/02/2004 18:19:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00873657
Message ID:
00873685
Vues:
12
You don't need loop through the APRINTERS() array, use ASCAN instead ...
lnPrinters = APRINTERS(laPrinters)
IF lnPrinters > 0
  IF ASCAN(laPrinters,lcYourPrinter,1,lnPrinters,1,13) > 0
     *** Do what you want to do...
  ENDIF
ELSE
  MESSAGEBOX("No installed printers")
ENDIF  
HTH.

>>Using VFP7, when printing, how do I programmatically specify the printer tray to which the print job should be sent?
>>
>Hello Terry;

>In this code.. The printer output will to a printer named my specific printer
>nwtot_imp = APRINTERS(awimpress)
>nwimp     = 0
>for ipp = 1 to nwtot_imp
>    if  "my specific printer"$lower(awimpress[ipp,1])
>        nwimp = ipp
>        exit
>    endif
>endfor
>if  nwimp > 0
>    SET PRINTER TO NAME awimpress[ipp,1]
>endif
>Hope this helps
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform