paper tray and assigned paper form

H

Herbert

Hello,

what I need to do is find out what paper forms are assigned to the paper
trays of a given printer. I 'd like to do that either via VBA or VBScript,
either is fine.

Any ideas/suggestions would be appreciated!

Herbert
 
J

Jonathan West

Herbert said:
Hello,

what I need to do is find out what paper forms are assigned to the paper
trays of a given printer. I 'd like to do that either via VBA or VBScript,
either is fine.

Any ideas/suggestions would be appreciated!

Controlling the Printer from Word VBA
Part 1: Using VBA to Select the Paper Tray
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=101


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
H

Herbert

Hello Jonathan,

thanks a lot for your reply.
Although the page was very informative that is not what I had in mind.

I can enumerate all bins and all supported papernames for a given printer.
But what I need is to know what paper form actually is asigned to each tray:

Printer: PS001
Tray <= paper form
------------------------
1 <= A4
2 <= CustomPaperForm_xyz
3 <= A4

Any inputs on that would be appreciated!

Thanks in advance,
Herbert
 
J

Jonathan West

Herbert said:
Hello Jonathan,

thanks a lot for your reply.
Although the page was very informative that is not what I had in mind.

I can enumerate all bins and all supported papernames for a given printer.
But what I need is to know what paper form actually is asigned to each
tray:

Printer: PS001
Tray <= paper form
------------------------
1 <= A4
2 <= CustomPaperForm_xyz
3 <= A4

Any inputs on that would be appreciated!


Ah, in that case you need this article

Controlling the Printer from Word VBA
Part 3: Dealing with Different Paper Sizes
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=132


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
H

Herbert

Hello Jonathan!

Thanks once again for your reply. Again, a very interesting page, but again
that's not what I need :)
The paper size is not the issue here, the name of the paper form is.

But nevermind, I will try a different approach. I found the information I
need to be stored in the registry of the printer server under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\<Printer
name>\PrinterDriverData\TrayFormTable

I only hope I can de-code it! :)

Thanks again!

Herbert
 

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