Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp7 Printer Controls
Message
From
03/02/2004 18:30:24
 
 
To
03/02/2004 18:19:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00873657
Message ID:
00873685
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform