【问题标题】:Print custom and current page?打印自定义页面和当前页面?
【发布时间】:2017-06-07 12:14:05
【问题描述】:

我正在关注这个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. 如何跳转到特定页面?

【问题讨论】:

    标签: vb.net printing ms-word vb.net-2010


    【解决方案1】:

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

    旁注:在 Microsoft.Office.Interop.Word 上询问时,不要再询问亿图,因为它被广泛的人使用并得到微软的支持。

    • 使用AxEDOffice1.ActiveDocument.PrintOut方法

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

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

    希望能帮到你

    【讨论】:

    • 谢谢。我现在的问题是如何跳转到特定页面和我的问题中的数字 1。
    • @Kira 不要再询问Edraw 图书馆,因为您不会得到答复。要获得更多关注,请询问Interop.Word,因为它被广泛的人使用并得到微软的支持。
    • @Kira 我会搜索您的问题。希望我能帮忙
    • 好的,我会的。谢谢。
    • @Kira 我真的很抱歉我没有找到解决您问题的方法。也许打开问一个新问题(在 Interop.Word 上)可能会得到更多关注。以及来自专家的更详细的回答。谢谢你接受我的回答,即使我不值得
    猜你喜欢
    • 2013-10-10
    • 1970-01-01
    • 2010-10-09
    • 2014-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    相关资源
    最近更新 更多