General information
Category:
Reports & Report designer
Environment versions
Network:
Windows 2000 Server
Jim,
Thanks. The printer is installed locally on one machine, and it is setup as a shared printer. On all other workstations the printer has been added as a network printer.
The problem is that I want a hard-coded reference to the default printer name. This works for the workstations, as they all know the printer by the "name of the machine" + the share name.
The problem is on the local machine that has the printer physically attached to it. On that machine, to briefly change the printer to the default, I have to reference it without the machine name.
The problem (as I see it) is that the Windows add printer dialog won't make a second reference to the printer, where, even though it is actually local on the machine, it would see it as a network printer. (I know for example that I can successfully do this with a network drive - so I would think I could do it for a printer - e.g.: net use \\mymachine\c$ f:\ )
But so far I can't figure out how to do it. Hopefully I explained this properly. Maybe you just can't do what I'm trying to do.
Thanks,
David Schlesinger
>As far as I know, you have to set printers on each workstation.
>
>In other words, you have to have the printer installed local nad shared on some PC, then on the other workstations point to that printer.
>
>good luck.
>
>
>>I created code to get and set the windows default printer, as per code and other threads on here (UT).
>>(I need to do this because the driver for my Zebra S600 printer doesn't work right if the printer is not the default)
>>
>>Each workstation on my customer's network shares the label printer. I have hardcoded the share name: '\\BUD3\Zebra Stripe 600' as the printer to set default to when they want to print from my label printing application.
>>This works fine when the user is on a workstation on the network. But if the user is on the local machine.. the printer name is 'Zebra Stripe 600' (without the machine name).
>>
>>I tried to get windows to treat the printer as a network printer,even though it is on the local machine, but windows doesn't see to do want to do this. I tried adding the printer as a network printer, even though it was already installed as local, but windows (win2k pro) won't make a second instance of the printer.
>>
>>I ended up writing code in the app to check to see what user/workstation is in use, and if the local machine that the printer is on - then set the printer name without the machine name.
>>
>>Any suggestions appreciated.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only