This project has moved. For the latest updates, please go here.

word.document.PrintOut issue

Aug 8, 2014 at 8:31 PM
To All,

I tried using the word.document.printout function, can't seem to get it to work.
The parameter is:
print one page, fit it to one page (so i can ignore margins etc). But the signiture of the printout so I've this:

object background = false;
            object append = false;
            object range = WORD.Enums.WdPrintOutRange.wdPrintFromTo;
            object outputfilename = string.Empty;
            object _from = 1;
            object _to = 1;
            object item = WdPrintOutItem.wdPrintDocumentContent;
            object copies = 1;
            object pages = string.Empty;
            object pageType = WdPrintOutPages.wdPrintAllPages;
            object printtofile = "";

            object collate = false;
            object filename = string.Empty;

            object activePrinterMacGX = string.Empty;
            object manualDuplexPrint = false;

            object printZoomColumn = 1;
            object printZoomRow = 1;

            object printZoomPaperWidth = "";
            object printZoomPaperHeight = "";


            doc.PrintOut(   background,
                    append, 
                    range, 
                    outputfilename, 
                    _from, 
                    _to, 
                    item, 
                    copies, 
                    pages, 
                    pageType, 
                    printtofile, 
                    collate, 
                    filename, 
                    /* activePrinterMacGX, */ /* commented out because not supported? */
                    manualDuplexPrint,
                    printZoomColumn, 
                    printZoomRow, 
                    printZoomPaperWidth, 
                    printZoomPaperHeight);
But this fails everytime, ... if i use
doc.PrintOut();
this would work.

Any Ideas or pointers?

Psc0425