Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer information.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00255865
Message ID:
00256040
Vues:
25
Fred,

No problem. Actually, I found a solution. I downloaded struct.zip (written by Christof Lange and Mark Wilden) from the Files section. This is an excellent resource for using API structures in VFP. There is a printerinfo.prg that creates a cursor of all Windows printers with their names and types using the wrapper classes. Thanks Christof and Mark for your work and making this available for others.

James


>>Fred,
>>
>>No, APRINTERS( ) creates a two-dimensional array. The first column of the array contains the names of the currently installed printers, and the second column contains the ports of those printers. What I need is the printer type. I'm sure it will have to be an API call or calls.
>>
>>Thanks,
>>
>>James
>>
>
>I see that now. All of our printer names have the printer type in them, so I didn't immediately notice it. Sorry.
>
>
>>
>>>>Does anyone know the API call to get the printer type information? To see what I'm referring to by printer type, run the GETPRINTER() function in VFP. In my case,
>>>>
>>>>Name: \\PRINTSERV\System_support
>>>>Status: Ready
>>>>Type: HP LaserJet 5si
>>>>
>>>>What I am after is the type (HP LaserJet 5si). All of VFP functions return the name but not the type so I figured there is an API call to get this info. Could someone share a code example of how to get the printer type? I would greatly appreciate it!
>>>>
>>>>TIA,
>>>>
>>>>James
>>>>
>>>>PS - I know a function exists in the FOCUS.FLL library but I cannot use this library.
>>>
>>>Does the APRINTERS() function give you the info you need?
James Moore
Owner/Developer
Ministry Tracking Software, Inc.
www.youthtrack.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform