Page 1 of 1 1
Topic Options
#214008 - 2021-08-18 02:59 PM AddPrinterConnection and DelPrinterConnection Syntax
Robdutoit Offline
Hey THIS is FUN
***

Registered: 2012-03-27
Posts: 328
Loc: London, England
 Code:
If AddPrinterConnection("\\vleerbeer\hp laserjet 4") = 0
   ? "Added printer connection...."
Endif

If DelPrinterConnection ("hplaser4") = 0

   ? "Deleted printer connection...."

Endif


I propose that DelPrinterConnection should have the same syntax as AddPrinterConnection, namely DelPrinterConnection ("\\vleerbeer\hp laserjet 4") = 0

Two Reasons:

Consistency between commands. I myself have made the mistake of forgetting that DelPrinterConnection must only be Printer Share Name and not \\ServerName\ShareName as seen in Adding a printer command. I think the two commands should be consistent as consistency makes it easy to use a system.

Same Printer Share Name Deletion. If you move an existing printer to a new Print Server and want to retain the same Printer Share Name, Kixtart provides no mechanism to remove hplaser4 just from old print server and not new print server as well.

I can't speak for other people, but I have many years ago moved to simple printer names such as Accounts Black Photocopier and Accounts Colour Photocopier. Therefore I want to retain these simple names when moving a printer from an obsolete print server to a new Server being rolled out.

So I would like to propose that the DelPrinterConnection Kixtart function be updated to achieve these two goals. Thank you.

Top
#214009 - 2021-08-19 05:17 PM Re: AddPrinterConnection and DelPrinterConnection Syntax [Re: Robdutoit]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
I never understood why it was different either. Regardless, I haven't given it a thought in few years once I wrote a wrapper UDF to make it all work seamlessly.

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

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1


Of note, I do have a newer version of PrinterConnection() and a ReplacePrinter() UDF that I never posted. Those are available if you PM me.

Top
#214010 - 2021-08-19 07:04 PM Re: AddPrinterConnection and DelPrinterConnection Syntax [Re: Allen]
Robdutoit Offline
Hey THIS is FUN
***

Registered: 2012-03-27
Posts: 328
Loc: London, England
What I have done with this particular issue is that I emailed all staff and asked them to simply delete the old printer from their login.

So I am actually sorted in that respect. But I am hoping that the developer will review the delprinterconnection syntax as I would imagine it is a very frequent request to "move" printer connections from one server to another whilst retaining same name.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 290 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.029 seconds in which 0.012 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