Word 2010 macro for printing to tray2

Nov 24, 2011
Reaction score
Im having an application which prints word documents to a two trays(2 copies). one copy from Tray2 having letter head and another from default tray.The application is ion java, we used java script for printing ,and opening word document through activeX ,made some formatting , page setup and tray setting.But its getting printed from default tray not from tray 2. both copies from default tray.Pls advise.Am i missing anything?

var wTrackFolder= new ActiveXObject('Word.Application');

wTrackFolder.ActiveDocument.PageSetup.FirstPageTray = 2;
wTrackFolder.ActiveDocument.PageSetup.OtherPagesTray = 2;
wTrackFolder.Options.DefaultTray = "Tray 2";


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