【问题标题】:Set WinForms RichTextBox as the source of a PrintDocument将 WinForms RichTextBox 设置为 PrintDocument 的源
【发布时间】:2010-02-15 19:14:28
【问题描述】:

我想打印RichTextBox 的内容,所以我尝试从 RichTextBox 中制作一个PrintDocument。但我找不到将简单的 RichTextBox 转换为 PrintDocument 的方法。有什么想法吗?

【问题讨论】:

    标签: c# .net richtextbox printdocument


    【解决方案1】:

    在 MSDN 上有相当广泛的文章,Getting WYSIWYG Print Results from a .NET RichTextBox:如果那是 TLDR,那么有一个 kb 文章的浓缩版本,How to print the content of a RichTextBox control by using Visual C# .NET or Visual C# 2005

    【讨论】:

    • 第二个看起来更紧凑。会尝试。但应该有一种隐含的方式。如果不是 RTB,人们应该在 DotNet 应用程序中打印什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-02
    • 2013-04-28
    • 2018-10-19
    • 1970-01-01
    • 2010-11-24
    • 1970-01-01
    相关资源
    最近更新 更多