Page 2 of 2 <12
Topic Options
#203835 - 2011-11-22 10:34 PM Re: printer problem.. [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I have a single ip-mapped printer, and it does not show the path in HKCU.
only under system in HKLM. that's the difference with ip-map :P
it basically is a local printer.
so, I can't really help you guys trace this one, sorry.
_________________________
!

download KiXnet

Top
#203836 - 2011-11-22 10:37 PM Re: printer problem.. [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, reading your post and checking your names, it seems that it only cares about the name, not the sharename.
lol, it actually says that in the definition of the udf "printers name"
not clear, but it is there ;\)

so, check against:
\\server\printername

you guys might also want to check:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts

that might list the actual sharename, not sure.
_________________________
!

download KiXnet

Top
#203837 - 2011-11-22 10:48 PM Re: printer problem.. [Re: Lonkero]
cividan Offline
Fresh Scripter

Registered: 2011-11-18
Posts: 25
Loc: Quebec, Canada
uner HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts

I have this key:

\\server\HP LaserJet P4014/P4015 PCL6


Value: winspool,Ne07:,15,45

I did try the primapstate with the \\server\printername and it returned false but I will try again

Top
#203838 - 2011-11-22 10:53 PM Re: printer problem.. [Re: cividan]
cividan Offline
Fresh Scripter

Registered: 2011-11-18
Posts: 25
Loc: Quebec, Canada
Ok I'm totally lost since now it works...

 Code:
? "check primapstate connection to printer name"
?
if primapstate("\\server\HP LaserJet P4014/P4015 PCL6")
? "delete printer from printer name"
   $RC=delprinterconnection("\\server\HP LaserJet P4014/P4015 PCL6")
   ? "result 2: "+@Error+" - "+@SError
Else ? "primapstate check didn't find the printer"
Endif
?


Edit: Thanks for all your help guys and keep the good work on a great software.


Edited by cividan (2011-11-22 10:56 PM)

Top
#203841 - 2011-11-23 03:23 AM Re: printer problem.. [Re: cividan]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4563
Loc: USA
If you want to give a new UDF a whirl, I'd appreciate your feedback.

PrinterConnection -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=203840#Post203840

This UDF eliminates the need to know the Printer Name. Add, Delete, Set Default, and check if the printer exists with only the share name.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2419 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.06 seconds in which 0.029 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org