Page 1 of 1 1
Topic Options
#157402 - 2006-02-17 03:54 PM Printer Creation Script woes
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Many of my users have the "Microsoft Document Imaging" printer set to their default when the log in. Though we have it no where in the script and we set all print connectoins to delete upon log in, it still shows up???
Top
#157403 - 2006-02-17 03:56 PM Re: Printer Creation Script woes
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
"Microsoft Document Imaging" is a local printer, so if there are no network printers, it defaults to a local one
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#157404 - 2006-02-17 05:41 PM Re: Printer Creation Script woes
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Well that is what is so concerning, because the other network printers are created just fine, but th default does not change.
Top
#157405 - 2006-02-17 06:04 PM Re: Printer Creation Script woes
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
It is a matter of which came first. If originally there were no other printers, thn the default would be well.... default. Adding other printers after the fact won't automagically change the default, you have to do that.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157406 - 2006-02-17 08:32 PM Re: Printer Creation Script woes
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
But the script is set to set a default printer.
Top
#157407 - 2006-02-17 08:33 PM Re: Printer Creation Script woes
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What script? How are we to comment on a script we know nothing about?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157408 - 2006-02-17 08:37 PM Re: Printer Creation Script woes
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Shawn does have the Amazing Kreskin telepathy helmet
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#157409 - 2006-02-17 08:39 PM Re: Printer Creation Script woes
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
if ingroup("printGroup18")
If ADDPRINTERCONNECTION ("\\print01\18_East") = 0
? "Added printer connection...."
endif
If ADDPRINTERCONNECTION ("\\print01\18E_Copier") = 0
? "Added printer connection...."
endif
If SetDefaultPrinter ("\\print01\18_East") = 0
? "Set default printer to 18_East...."
endif
endif

Top
#157410 - 2006-02-17 08:42 PM Re: Printer Creation Script woes
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
You have the syntax wrong, AddPrinterConnection and SetDefaultPrinter uses different syntax.

SetDefaultPrinter uses the printer name and not the printer path name, see below.

Quote:


SetDefaultPrinter ("<printer name>")

printer name = the fully qualified name (include the double backslashes and the server name) for the printer to be set as default





Quote:


AddPrinterConnection ("<printerpath>")

printerpath = UNC path to printer name ("\\server\printer name") or share name ("\\server\printer share name")




Thanks

Top
#157411 - 2006-02-17 08:45 PM Re: Printer Creation Script woes
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
if ingroup("printGroup18")

If ADDPRINTERCONNECTION("\\print01\18E_Copier") = 0
? "Added printer connection...."
$nul = SetDefaultPrinter("\\print01\18E_Copier")
endif

If ADDPRINTERCONNECTION("\\print01\18_East") = 0
? "Added printer connection...."
$nul = SetDefaultPrinter("\\print01\18_East")
endif


endif


Edited by Radimus (2006-02-17 08:50 PM)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#157412 - 2006-02-17 08:47 PM Re: Printer Creation Script woes
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
I am sure I have something wrong.
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 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

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

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