#213201 - 2018-02-13 09:19 AM
Re: Code
[Re: mmuser]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
In command prompt you can get the error code like this:
The answer would be: "The RPC server is unavailable." The reason you get a 0 in front with your code is because 0 is what is returned by AddPrinterConnection. As Allen pointed out, you have to catch that with a variable, in his example $RC. In Kix @ERROR returns the error code and @SERROR returns the error description.
The likely problem seems to be that the $printserver variable doesn't contain the right name.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 559 anonymous users online.
|
|
|