General information
Category:
Reports & Report designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only