|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Specify a source tray to take the paper fromI 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 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 "Donald Campbell" <sue***@suedon.co.uk> wrote in message You are in the wrong newsgroup. This group is for Classic VB (VB6 and 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. previous versions). Try posting your question on a VB.Net group, such as: microsoft.public.dotnet.languages.vb Mike
Problem converting string to number: "Type mismatch" error
VB6: How to initialize a variable as a array structure / structure (type) array (see example) Screen resolution and Image Anchors and Objects Shelling to EXE not named EXE A query loosing its value? Commenting out a block of code with one click (OT) Anyone remember the formula? Runtime Error 91 Status Bar Question |
|||||||||||||||||||||||