Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APrinters results under W2K
Message
From
22/12/2000 16:03:26
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00453602
Message ID:
00456471
Views:
31
Ed:

I'm still having the same problem. Here is an example:

= aPrinters(bob)
&& bob[1,1] = "HP 4050T PS"
&& bob[1,2] = "Ne00:"
&& The printer is \\hmaserv01\hp4050

Declare integer WNetGetConnection IN WIN32API STRING @, STRING @, INTEGER @

cUNCBuffer = REPL(CHR(0), 261)
nLength = LEN(cUNCBuffer)

cLocalDevice = "Ne00:"
? WNetGetConnection(cLocalDevice, @cUNCBuffer, @nLength)
&& Error 1200 - unknown device

cLocalDevice = "HP LaserJet 4050 T PS"
? WNetGetConnection(cLocalDevice, @cUNCBuffer, @nLength)
&& Error 1200 - unknown device

cLocalDevice = "L:" && a mapping
? WNetGetConnection(cLocalDevice, @cUNCBuffer, @nLength)
&& Returns proper UNC

I'm not sure what I'm missing, and I hope you can help.

Barton
Previous
Reply
Map
View

Click here to load this message in the networking platform