打印自定义页面和当前页面?
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
我的问题
- 如果我设置要打印的页面范围可以
Print Preview it?
- 如何打印当前页? (我看到这段代码
.PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintCurrentPage)
)但问题是如何导航到下一页/上一页。
- 如何跳转到特定页面?
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
选项并指定 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
希望能帮到你
我正在关注这个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
我的问题
- 如果我设置要打印的页面范围可以
Print Preview it?
- 如何打印当前页? (我看到这段代码
.PrintOut(EDOfficeLib.WdPrintOutRange.wdPrintCurrentPage)
)但问题是如何导航到下一页/上一页。 - 如何跳转到特定页面?
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
选项并指定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
希望能帮到你