Printing Word Document
I am trying to print word document from my application. The problem that I am facing is that it is printing to the default tray instead of the tray that I want it to print from. Here is the code:
oWordDoc.PageSetup.FirstPageTray = Word.WdPaperTray.wdPrinterMiddleBin;
oWordApp.ActivePrinter = printername;
oWordApp.Visible = false;
oWordApp.PrintOut(ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing);
Any help is appreciated.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

sansari713 pointsPosted Apr 12, 2005, 11:50 AM EDT