Page 1 of 1 1
Topic Options
#21293 - 2002-05-08 12:36 AM SetDefaultPrinter
Anonymous
Unregistered


Im having trouble with SetDefaultPrinter again!!!!

code:
if addprinterconnection("\\staff02\EpsonSIMS") = 0
AT (14,15) "Connected to Epson printer"
endif

if SetDefaultPrinter ("\\staff02\EpsonSIMS") = 0
AT (14,15) "Connected to Epson (Default)"
endif
return

The thing is its not setting the default printer so no apps can see it! Im using NT4 and the latest kix version!

TIA

Mike

Top
#21294 - 2002-05-08 12:52 AM Re: SetDefaultPrinter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what if you change the setdefault for error tracing purposes to:
if SetDefaultPrinter ("\\staff02\EpsonSIMS") = 0
AT (14,15) "Connected to Epson (Default)"
else
AT (14,15) "There was error setting default printer:"+chr(10)+@error+" "+@serror+chr(10)+"If this problem persists, contact system administrator"
endif
_________________________
!

download KiXnet

Top
#21295 - 2002-05-07 01:43 PM Re: SetDefaultPrinter
Anonymous
Unregistered


Ooooooo look at this! "2 The system cannot find the file specified"

whats that mean then! well obviously it cannot find the printer, but it is there i checked in control panel!!!!!!!!!!!!!v AGHHHHHHHHHHHHHHHHH

Top
#21296 - 2002-05-07 01:56 PM Re: SetDefaultPrinter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well...

I tried and tried and tried...

it should work in really odd way.

using server and PRINTER name not share name.

\\Printer_server\printer_name

try that out...
_________________________
!

download KiXnet

Top
#21297 - 2002-05-07 02:06 PM Re: SetDefaultPrinter
Anonymous
Unregistered


The printer name is the same as the share name. I always do it that way makes it easier to manage!
Top
#21298 - 2002-05-07 03:48 PM Re: SetDefaultPrinter
Anonymous
Unregistered


god damn it! sorted, thanks guys!
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
1 registered (Allen) and 363 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.055 seconds in which 0.024 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