Printer bins

L

Luke Bellamy

Hi - I'm trying to get some code working to print a "batch" or reports to a
printer
on a specific bin.
I have code to populate a drop down with all the bins from the printer
getting the
device capabilities from the WinAPI. But in my case I select a tray and the
bin
value for the Xerox printer is 254. When I try and set this to the Printer
Paper Bin
it fails with an invalid procudure call.
I'm thinking this value is out of the range of acceptable limits of the
Paper Bin.

That got my thinking that may the only values you can use are the Access
paper bin
constants (e.g Auto, Upper, Middle, Lower).

I have been looking at a Microsoft example and although they can show the
printers bins
they only have the standard Access bins as the available selections.

Is this correct that I can only use the Access paper bin constants?
Is there a better way to print to specific printer bins?
 
V

Van T. Dinh

I cheat a bit when I want to do this.

I just set up another Printer object in Windows (using the same printer)
with the required Paper Source and assign this Printer as the specific
Printer for the Report.

If you are using A2002 or later, I guess you could manilupate the Printer
Object (in Access) but I never got around to play with the Printer Object.
 
L

Luke Bellamy

Thanks Van. I did try and add the network printer again on windows XP and it
seemed to not add another one. Is there a duplicate printer check around
this?
If so how to you get around this?

Thanks
---------------
Luke Bellamy
Newcastle, Australia

Van T. Dinh said:
I cheat a bit when I want to do this.

I just set up another Printer object in Windows (using the same printer)
with the required Paper Source and assign this Printer as the specific
Printer for the Report.

If you are using A2002 or later, I guess you could manilupate the Printer
Object (in Access) but I never got around to play with the Printer Object.
 
V

Van T. Dinh

OK. That's got me, too. I noticed once that I tried to create an extra
networked Printer
(HP JETDirect or something like that) and the system seems to realise that
the networked Printer has already been set up on the work-station. The OS
seems to accept the new settings silently for the existing Printer rather
than creating another copy of the printer.

Not sure but try copying the Printer object (in the Printers and Faxes) and
then modifying the copy. This work-around helped me with some network
permission problems before.
 
L

Luke Bellamy

So it's not just me :)

I did try copying the printer but there is no options to copy.
I'll be looking around the web for a solution to this and it is a great
work around and will save me lots of heart-ache.

Luke

Van T. Dinh said:
OK. That's got me, too. I noticed once that I tried to create an extra
networked Printer
(HP JETDirect or something like that) and the system seems to realise that
the networked Printer has already been set up on the work-station. The OS
seems to accept the new settings silently for the existing Printer rather
than creating another copy of the printer.

Not sure but try copying the Printer object (in the Printers and Faxes) and
then modifying the copy. This work-around helped me with some network
permission problems before.

--
HTH
Van T. Dinh
MVP (Access)
 
L

Luke Bellamy

OK I worked out a solution. If you go through the add printer wizard and
select to add a local printer (yes local). Then when you specify the port
select TCP/IP from the drop down and enter the IP address of the network
printer. Then
it prompts you for a printer display name (just like when you add a real
local printer) and you can define multiple different alias.

---------------
Luke Bellamy
Newcastle, Australia

Van T. Dinh said:
OK. That's got me, too. I noticed once that I tried to create an extra
networked Printer
(HP JETDirect or something like that) and the system seems to realise that
the networked Printer has already been set up on the work-station. The OS
seems to accept the new settings silently for the existing Printer rather
than creating another copy of the printer.

Not sure but try copying the Printer object (in the Printers and Faxes)
and then modifying the copy. This work-around helped me with some network
permission problems before.

--
HTH
Van T. Dinh
MVP (Access)
 
V

Van T. Dinh

Yes. The Printers and Faxes Folder got a number of things going on behind
that we don't know about.

One of my clients has a very open network using SBS 2000. Everyone has full
access to everything. Two users didn't know and have been logging on to the
work-stations rather than the network and a bit of work required to move
everything on their desktops from the workstation users to the network
users. The client recently had a networked (TCP/IP) colour printer
installed. I shared the printer and gave permission to "everyone". One of
the 2 users (that log on as workstation users) had no problem setting up the
printer on his desktop. The other user set up the printer OK but has "no
permissions" problems when trying to print (even though the permission is
full for everyone). Out of frustration, I just used Network Neighbourhood
to navigate to the server's Printers Folder, dragged and dropped from there
to the user's Printers Folder and the bloody printer works perfectly since.

It couldn't be "no permissions" since the same settings works fine without
any change!

Thanks for posting your work-around.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top