简体   繁体   English

如何添加新页面或从下一页UWP开始打印?

[英]How to add a new page or start printing from the next page UWP?

I'm trying to print from my UWP app following this: 我正在尝试通过以下方式从我的UWP应用程序中进行打印:

https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/print-from-your-app https://docs.microsoft.com/zh-CN/windows/uwp/devices-sensors/print-from-your-app

Everything is working fine. 一切正常。 But on a specific page, I want to escape the current page and start printing from the next page, ie, I want to add a page to the current one. 但是在特定页面上,我要转义当前页面并从下一页开始打印,即我想在当前页面上添加页面。 I tried using the RichTextBlockOverflow element but failed. 我尝试使用RichTextBlockOverflow元素,但失败了。 Please help. 请帮忙。 Thanks 谢谢

Everything is explained in details in this blog post . 一切都在此博客文章中详细解释。 I tried this code about a month ago and it worked nicely. 我在一个月前尝试了此代码,效果很好。 It's using UserControl for general pages layout and than RichTextBlock for document layout ( Paragraphs etc.). 它使用UserControl进行常规页面布局,而不是使用RichTextBlock进行文档布局( Paragraphs等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM