【发布时间】:2015-05-23 19:49:10
【问题描述】:
我需要在打印前为用户显示文本并允许打印。 我尝试使用 DocumentViewer,但找不到显示简单文本的示例。只有 Word 或 XPS,但它是过度的解决方案。
有没有办法打印简单的多行文本 throw DocumentViewer
var printText = @"Multiline text to view and print
Line1 Content
Line2 Content
";
和查看
<DocumentViewer>
<FixedDocument></FixedDocument>
</DocumentViewer>
如何做到这一点?
【问题讨论】:
-
这应该让你走上正确的道路stackoverflow.com/a/10258079/3225
标签: c# wpf text documentviewer