I'm using the following syntax :
Word.Application Word_App = null;
Word.Document Word_doc = null;
Word.Documents Docs = null;
object oTrue = true;
object oFalse = false;
object oMissing = System.Reflection.Missing.Value;
object oPrintRange = Word.WdPrintOutRange.wdPrintAllDocument;
object oPrintItems = Word.WdPrintOutItem.wdPrintDocumentContent;
object oPrintCopies = "1";
object oPrintPages = "1";
object oPrintPageType = Word.WdPrintOutPages.wdPrintAllPages;
When I make use of the following command :
Doc1.PrintOut(ref oTrue, ref oFalse, ref oPrintRange,
ref oMissing, ref oMissing, ref oMissing,
ref oPrintItems, ref oPrintCopies, ref oPrintPages,
ref oPrintPageType, ref oFalse,
ref oTrue, ref oMissing, ref oFalse, ref oMissing,
ref oMissing, ref oMissing, ref oMissing);
I only ever get the first page of the intended document.
I've tried setting the value of
object oPrintPages = Word.WdPrintOutPages.wdPrintAllPages;
but see no difference.
Can anyone suggest what I'm doing wrong ?
How can I get all pages within the document to print ?
Thanks in advance
Steve
Word.Application Word_App = null;
Word.Document Word_doc = null;
Word.Documents Docs = null;
object oTrue = true;
object oFalse = false;
object oMissing = System.Reflection.Missing.Value;
object oPrintRange = Word.WdPrintOutRange.wdPrintAllDocument;
object oPrintItems = Word.WdPrintOutItem.wdPrintDocumentContent;
object oPrintCopies = "1";
object oPrintPages = "1";
object oPrintPageType = Word.WdPrintOutPages.wdPrintAllPages;
When I make use of the following command :
Doc1.PrintOut(ref oTrue, ref oFalse, ref oPrintRange,
ref oMissing, ref oMissing, ref oMissing,
ref oPrintItems, ref oPrintCopies, ref oPrintPages,
ref oPrintPageType, ref oFalse,
ref oTrue, ref oMissing, ref oFalse, ref oMissing,
ref oMissing, ref oMissing, ref oMissing);
I only ever get the first page of the intended document.
I've tried setting the value of
object oPrintPages = Word.WdPrintOutPages.wdPrintAllPages;
but see no difference.
Can anyone suggest what I'm doing wrong ?
How can I get all pages within the document to print ?
Thanks in advance
Steve