Page 1 of 1 1
Topic Options
#30926 - 2002-10-18 11:28 AM SETDEFAULTPRINTER Problem
bpsysadmin Offline
Fresh Scripter

Registered: 2002-10-18
Posts: 20
Dear ...,

I am having problems with the SETDEFAULTPRINTER within Kix 4.11 (kix32 and wkix32), if I use it, it sets the default printer (if you look it up in printers and faxes) but if I open a program it says: No default printer selected...If I choose the default printer manually there is no problem, as soon as the script has run again the same problem occurs again...the script is being tested on Windows XP

Top
#30927 - 2002-10-18 11:33 AM Re: SETDEFAULTPRINTER Problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, let me ask for clarification.
if you check on the printers tab, it's selected as default?
or is it just there?
_________________________
!

download KiXnet

Top
#30928 - 2002-10-18 11:39 AM Re: SETDEFAULTPRINTER Problem
bpsysadmin Offline
Fresh Scripter

Registered: 2002-10-18
Posts: 20
Sorry, yes it is there AND is selected as default printer.
Top
#30929 - 2002-10-18 02:02 PM Re: SETDEFAULTPRINTER Problem
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
bpsysadmin,

This maybe a bit belated at this point.. But, welcome to the board! [Smile]

Can you post some code/syntax of what you are trying to do?

Maybe this will help shed some light too?

In the FAQ Forum..

Specifically - Default Printer

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#30930 - 2002-10-18 03:02 PM Re: SETDEFAULTPRINTER Problem
bpsysadmin Offline
Fresh Scripter

Registered: 2002-10-18
Posts: 20
code:
  $hvsprintserver1="hvs002-2"
$hvsprintserver2="am"
$HVS001="\\$hvsprintserver1\hvs0-blanco"
$HVS002="\\$hvsprintserver1\hvs0-kleur2"
$HVS003="\\$hvsprintserver2\hvs0-kleur"

IF InGroup ( "AddPrinters" )
IF InGroup ( "HVS0-Printers" )
ADDPRINTERCONNECTION ("$HVS001")
ADDPRINTERCONNECTION ("$HVS002")
ADDPRINTERCONNECTION ("$HVS003")
ENDIF
IF InGroup ( "Printerdefault-HVS0-Blanco" )
SETDEFAULTPRINTER ("$HVS002")
SETDEFAULTPRINTER ("$HVS001")
ENDIF
IF InGroup ( "Printerdefault-HVS0-Kleur2" )
SETDEFAULTPRINTER ("$HVS001")
SETDEFAULTPRINTER ("$HVS002")
ENDIF
ENDIF



[ 18. October 2002, 15:04: Message edited by: bpsysadmin ]

Top
#30931 - 2002-10-18 03:11 PM Re: SETDEFAULTPRINTER Problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
is your printers name same as it's sharename?
as setdefaultprinter needs the printer name.
_________________________
!

download KiXnet

Top
#30932 - 2002-10-18 03:25 PM Re: SETDEFAULTPRINTER Problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See also the KiXtart Manual under SETDEFAULTPRINTER().

In addition group names are limited to 20 characters, see Limit to group Names

[ 18. October 2002, 15:29: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#30933 - 2002-10-18 03:56 PM Re: SETDEFAULTPRINTER Problem
bpsysadmin Offline
Fresh Scripter

Registered: 2002-10-18
Posts: 20
The 20 char limit is only in NT4 I read in the article...not Windows 2000 Advanced Server.

Then again: Under Printers and Faxes you see that the right default printer is selected, but if you start a program it says: no default printer selected...then when manually changing the default printer to another printer and then back to the right printer...then it works. Only when kix does set the default printer programs are telling me: No default printer selected (even that if I check Printers and faxes I see a default printer)

Top
#30934 - 2002-10-18 04:02 PM Re: SETDEFAULTPRINTER Problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You didn't specify the clients that you are using, thus the hint.
_________________________
There are two types of vessels, submarines and targets.

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 641 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.061 seconds in which 0.027 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