Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APrinters results under W2K
Message
From
14/12/2000 18:51:16
 
 
To
14/12/2000 15:43:07
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00453602
Message ID:
00453687
Views:
29
>All:
>Like countless other weary souls before me, I'm trying to print to a dot matrix printer using high speed draft mode. I've been through the prior postings (great information) and started down the path of Report Form -> Generic Printer -> File -> CopyFile(network spool path). It worked great until I tested my work on Windows 2000. The port names returned by APRINTERS() are "Ne00:", "Ne01:" ... which, AFAIK, don't do me any good. The DOS prompt doesn't seem to recognize them and CopyFile sure doesn't. If I've missed a previous post, I apologize. Anyone know how to resolve the NeXX name to a UNC, or is there another way around this?
>

You can use WNetGetConnection() to retrieve the UNC of a mapped drive or device; see API #12674 for an example of how to implement it.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform