Home All Groups Group Topic Archive Search About

Specify a source tray to take the paper from

Author
11 Dec 2008 8:21 AM
Donald Campbell
Specify a source tray to take the paper from.

I am rewriting an old Unix application in visual studio 2008 (VB) and I
need to be able to check the name of the default printer and if it is a
certain printer I need to be able to say which paper tray to take the
paper from.

The reason is that printer in question is a HP laserjet with 3 draws + a
"tower tray" with a further 4 trays. This enables the app to select
which type of letterhead paper to use.

Works fine from the old Unix app where I can control the driver.
Works fine manually printing and selecting the tray via the Windows
print dialogue.

I need to be able to set-up the destination and paper tray number within
a VB2008 windows form and tell it to print.

The item that will be printed is a Word doc (2003 or 2008). I have got
it printing directly to the default printer but only with the printer
defaults.

Don C

Author
11 Dec 2008 9:03 AM
Bill McCarthy
Hi Donald,

For VB.NET 2008 best to ask in a dotnet newsgroup such as :
microsoft.public.dotnet.languages.vb

As you are programming Word you may also want to try in the VTSO or
Word.Programming newsgroups.

From your question it sounds more like Word is doing the printing not
VB.NET, as in you are telling word to print the document.  If that's the
case the Word newsgroups would be the best bet.



Show quoteHide quote
"Donald Campbell" <sue***@suedon.co.uk> wrote in message
news:6I8KXpEN2MQJFAoj@suedonltd.demon.co.uk...
> Specify a source tray to take the paper from.
>
> I am rewriting an old Unix application in visual studio 2008 (VB) and I
> need to be able to check the name of the default printer and if it is a
> certain printer I need to be able to say which paper tray to take the
> paper from.
>
> The reason is that printer in question is a HP laserjet with 3 draws + a
> "tower tray" with a further 4 trays. This enables the app to select which
> type of letterhead paper to use.
>
> Works fine from the old Unix app where I can control the driver.
> Works fine manually printing and selecting the tray via the Windows print
> dialogue.
>
> I need to be able to set-up the destination and paper tray number within a
> VB2008 windows form and tell it to print.
>
> The item that will be printed is a Word doc (2003 or 2008). I have got it
> printing directly to the default printer but only with the printer
> defaults.
>
> Don C
Author
11 Dec 2008 9:04 AM
Mike Williams
"Donald Campbell" <sue***@suedon.co.uk> wrote in message
news:6I8KXpEN2MQJFAoj@suedonltd.demon.co.uk...

> I am rewriting an old Unix application in visual studio 2008
> (VB) and I need to be able to check the name of the default
> printer and if it is a certain printer I need to be able to say
> which paper tray to take the paper from.

You are in the wrong newsgroup. This group is for Classic VB (VB6 and
previous versions). Try posting your question on a VB.Net group, such as:

    microsoft.public.dotnet.languages.vb

Mike