打印自定义页面和当前页面?

Print custom and current page?

我正在关注这个Edraw Link

我能够使用此 LINK.

搜索我的问题之一

我现在的代码是

  With AxEDOffice1
     .PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintRangeOfPages, 1, 1, "", 2)
           // from page , to page , (Page as Object) this one is don't know how to use, number of copies //
  End With

 //This one is for next page but its not working. I print preview first and click a button using code below.
 With AxEDOffice1
        .SlideGotoNext()
    End With

我的问题

  1. 如果我设置要打印的页面范围可以Print Preview it?
  2. 如何打印当前页? (我看到这段代码 .PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintCurrentPage))但问题是如何导航到下一页/上一页。
  3. 如何跳转到特定页面?

Edraw library is built using Microsoft.Office.Interop.Word Library 所以PrintOut Method与found Here相同(上面的MSDN文章非常对你的情况有用)

旁注:为了获得更多关注,请不要再问亿图什么时候可以在 Microsoft.Office.Interop.Word 上问了,因为它被广泛的人使用并且得到了支持微软.

  • 使用AxEDOffice1.ActiveDocument.PrintOut方法

  • 要指定打印范围,您必须使用 select EDOfficeLib.WdPrintOutRange.wdPrintFromTo 选项并指定 FromTo 参数。 (开始页和结束页)

这些参考资料也对您有帮助:

希望能帮到你