oWord.ActiveDocument.PrintOut(ref oMissing, ref oMissing, ref oRange, ref oTarget2, ref oMissing, 
                    ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oTrue, 
                    ref oMissing, ref oTarget, ref oMissing, ref oMissing, ref oMissing, ref oMissing, 
                    ref oMissing);

解决方案 »

  1.   

    word版本不同,参数个数可能不同
      

  2.   

    参考
    http://msdn.microsoft.com/library/en-us/vbawd10/html/womthPrintOut.asp
      

  3.   

    public abstract new void PrintOut ( System.Object Background , System.Object Append , System.Object Range , System.Object OutputFileName , System.Object From , System.Object To , System.Object Item , System.Object Copies , System.Object Pages , System.Object PageType , System.Object PrintToFile , System.Object Collate , System.Object FileName , System.Object ActivePrinterMacGX , System.Object ManualDuplexPrint , System.Object PrintZoomColumn , System.Object PrintZoomRow , System.Object PrintZoomPaperWidth , System.Object PrintZoomPaperHeight )
      

  4.   

    object o = Type.Missing ;
    wd.ActiveDocument.PrintOut(ref o,ref o,ref o,ref o,ref o,ref o,ref o,
    ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o);
    以上就能实现打印,请问这样是默认当前设置的格式吗?
      

  5.   

    object hai= 30;
    wd.Application .Dialogs.Item(Word.WdWordDialog.wdDialogFilePrint).Display(ref hai) ;
    我调用打印对话框为什么没有反应呢?