加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

vb.net – 打印自定义和当前页面?

发布时间:2020-12-17 00:28:00 所属栏目:大数据 来源:网络整理
导读:我跟着这个 Edraw Link. 我能够使用这个LINK搜索我的一个问题. 我现在的代码是 With AxEDOffice1 .PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintRangeOfPages,1,"",2) // from page,to page,(Page as Object) this one is don't know how to use,number of
我跟着这个 Edraw Link.

我能够使用这个LINK搜索我的一个问题.

我现在的代码是

With AxEDOffice1
     .PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintRangeOfPages,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

我的问题

>如果我设置要打印的页面的范围可以打印预览吗?
>如何打印当前页面? (我看到这个代码.PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintCurrentPage)),但问题是如何导航到下一页/以前的页面.
>如何跳入特定页面?

Edraw库是使用Microsoft.Office.Interop.Word库构建的,所以PrintOut方法与找到的 Here相同(MSDN文章上面对你的情况非常有用)

侧面注意:为了获得更多的关注,在询问Microsoft.Office.Interop.Word时可以做的事情不要再问了,因为它被广泛的用户使用,并且由微软支持.

>使用AxEDOffice1.ActiveDocument.PrintOut方法
>要指定打印范围,您必须选择EDOfficeLib.WdPrintOutRange.wdPrintFromTo选项,并指定From和To参数. (开始页和结束页)

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

> https://msdn.microsoft.com/en-us/library/b9f0ke7y.aspx
> https://msdn.microsoft.com/en-us/library/b1x2ca5h.aspx
> https://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.document.goto.aspx

希望我帮忙

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读