更新时间:2021-08-21 08:43:03
富文本编辑器不像MS-word,因为它没有页面的概念,它只是知道一块文字。
但是你可以将页码添加到PrintDialog
:
https:// msdn。 microsoft.com/en-us/library/system.windows.controls.printdialog%28v=vs.110%29.aspx [ ^ ]
http:// *** .com / questions / 6792118 / print-a-page-in-each-printed-page-in-c-sharp [ ^ ]
使用WinForms VS2010在C#中打印RichTextBox [ ^ ]
The rich text editor is not like MS-word in that it does not have the notion of pages, it just knows of a block of text.
You can however add page numbers to aPrintDialog
:
https://msdn.microsoft.com/en-us/library/system.windows.controls.printdialog%28v=vs.110%29.aspx[^]
http://***.com/questions/6792118/printing-a-page-number-in-each-printed-page-in-c-sharp[^]
RichTextBox Printing in C# with WinForms VS2010[^]