Printing Word Document

Apr 11 2005 7:01 PM
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.

Answers (1)