Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer port from prompt
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01275152
Message ID:
01275351
Views:
11
>I tried
>
>PTT = GETPRINTER ()
>
>SET PRINTER TO PTT
>
>APRINTERS(PT1 , 1)
>
>? PT1 [1]
>? PT1 [2]
>
>But I can not get the print port yet
>
>I just want to store to port to a variable
local lcPrinter as String, lnI as Integer, lcPort as String
local array laPrinters[1]

lcPrinter = getprinter()

aPrinters(laPrinters)
&& Use ascan to search for the selected printer
lnI = ascan(m.lcPrinter, laPrinters) && check syntax on this one for correct flags

lcPort = laPrinters[m.lnI,3] && Check this also
I write strictly from memory, you would need to check syntax for the functions.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform