Windows applications don't print to real printers,
they print to printer drivers.
The printer driver that a report prints to is identified
by the printer device name that you give it in control
panel.
There is normally a way a printer identifies itself,
but that is only so that you can use the correct driver.
Even if you knew the physical printer ID, it wouldn't
help you, because you don't print to the real printer.
Printer drivers don't have a Windows ID. There is just
a list of installation disks and printer ID's, so that
when you connect a printer, you can find an installation
disk. After that, the printer/printer driver is just
identified by the device name that you give it in when
setting up.
Bottom line, there is no Windows ID, only the name you
choose.
One approach is given here:
http://allenbrowne.com/AppPrintMgt.html
Printer Selection Utility
(david)
"MLH" <CRCI@NorthState.net> wrote in message
news:an2t52h0p2r68to9d1h1lc34g8bqta58ka@4ax.com...[color=blue]
> Thanks, David. I'm rolling this app out onto a number of
> different installations. I like your solution and wish to build
> a form on which a user can specify a newly created printer
> with default tray for holding blank labels. Now, once that's
> done, my report object will need to be directed in code
> somehow to the new target printer. How do people handle
> that sort of thing these days?
>
> I'm hoping there's some kind of Windows identifier string
> for any given printer I can save in a table, directing my
> report object to use it anytime the report is printed. Let me
> know if this is something standard that I just missed the
> boat on somehow.
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx
>
>
> On Mon, 24 Apr 2006 15:33:20 +1000, "david epsom dot com dot au"
> <david@epsomdotcomdotau> wrote:
>[color=green]
>>Go to your printer setup, and create a new printer. For each
>>printer you can set things like the default tray.
>>
>>In Access, set the report to print to that printer instead of
>>printing to the default printer. (select the report, then File,
>>Page Setup, Use Specific Printer).
>>
>>Now when you print that report, it will always use that printer,
>>which will always use that tray.
>>
>>(david)
>>
>>
>>"MLH" <CRCI@NorthState.net> wrote in message
>>news:i4ln42hh2usmvf2f2tm3s2phegheoojifi@4ax.com. ..[color=darkred]
>>>I am unsure how to do this. I want this tray to be used for certain
>>> print jobs - jobs that will prompt me to load the bypass tray with
>>> sheet labels. How to force this? Dunno.
>>>
>>> Its the HP LaserJet 4200.[/color]
>>[/color]
>[/color]