打印自定义和当前页面?

KiR*_*iRa 9 vb.net printing ms-word vb.net-2010

我正在关注这个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
Run Code Online (Sandbox Code Playgroud)

我的问题

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

Had*_*adi 4

Edraw 库是使用Microsoft.Office.Interop.Word库构建的,因此 PrintOut 方法与此处找到的相同(上面的 MSDN 文章对您的情况非常有用

旁注:为了获得更多关注,当在 Microsoft.Office.Interop.Word 上询问时可以完成事情时,请不要再询问有关 Edraw 的问题,因为它被广泛的用户使用并且受到 Microsoft 的支持。

  • 使用AxEDOffice1.ActiveDocument.PrintOut方法

  • 要指定打印范围,您必须选择EDOfficeLib.WdPrintOutRange.wdPrintFromTo选项并指定From参数To。(起始页和结束页

这些参考资料还将帮助您:

希望我有帮助