A
Andrew Mercer
Hi,
I need to handle the following scenarios when printing word documents:
<scenario1>
Print document 1 to Printer 1 (auto tray)
Print document 2 to Printer 2 (auto tray)
</scenario1>
<scenario2>
Print document 1 to printer 1 (manual tray)
Print document 2 to printer 1 (auto tray)
</scenario2>
<scenario3>
Print page 1 of document 1 to printer 1 (manual tray)
Print rest of document 1 to printer 1 (auto tray)
</scenario3>
The ...Interop.Word API suggests all scenarios are possible however when I
try scenario3 I get the whole document printing to the same printer.
So if I set
Word.Document.PageSetup.FirstPageTray to the manual tray and
Word.Document.PageSetup.OtherPagesTray to the automatic tray
when I then print the document using Word.PrintOut the whole document is
printed from the manual tray. (The same happens if I try printing Page one
from auto and the rest from manual)
I even tried making two calls two Word.PrintOut as follows:
1. Set the tray for page 1 to manual
2. Call Word.PrintOut (setting the Pages object of the call to Page 1 only)
3. Set the tray for the rest of the document to auto
4. Call Word.PrintOut (setting the Pages object of the call to Page 2 and
above)
I now get the whole document printed from the manual tray and then the whole
document printed from the auto try.
What am I doing wrong?
Am I misunderstanding these objects/settings?
If it helps I can send a sample of my code...
Thanks in advance.
Andrew
I need to handle the following scenarios when printing word documents:
<scenario1>
Print document 1 to Printer 1 (auto tray)
Print document 2 to Printer 2 (auto tray)
</scenario1>
<scenario2>
Print document 1 to printer 1 (manual tray)
Print document 2 to printer 1 (auto tray)
</scenario2>
<scenario3>
Print page 1 of document 1 to printer 1 (manual tray)
Print rest of document 1 to printer 1 (auto tray)
</scenario3>
The ...Interop.Word API suggests all scenarios are possible however when I
try scenario3 I get the whole document printing to the same printer.
So if I set
Word.Document.PageSetup.FirstPageTray to the manual tray and
Word.Document.PageSetup.OtherPagesTray to the automatic tray
when I then print the document using Word.PrintOut the whole document is
printed from the manual tray. (The same happens if I try printing Page one
from auto and the rest from manual)
I even tried making two calls two Word.PrintOut as follows:
1. Set the tray for page 1 to manual
2. Call Word.PrintOut (setting the Pages object of the call to Page 1 only)
3. Set the tray for the rest of the document to auto
4. Call Word.PrintOut (setting the Pages object of the call to Page 2 and
above)
I now get the whole document printed from the manual tray and then the whole
document printed from the auto try.
What am I doing wrong?
Am I misunderstanding these objects/settings?
If it helps I can send a sample of my code...
Thanks in advance.
Andrew