使用c#在富文本框中打印问题
问题描述:
我的项目无法使用打印选项.
在这种情况下,我首先将内容导出到.doc文件.
我使用richtextbox,并且格式化是通过使用rtf在richtextbox中插入表格来完成的.
在doc文件中,边框未显示.
但在我的打印选项中显示了边框.
打印时实际发生了什么.是我听不懂吗?
请帮助
My project is working bad for the print option.
in this i first export the contents to .doc file.
I use the richtextbox & formating is done by inserting table in richtextbox with rtf.
in doc file the border is not shown.
but in my print option the border is shown.
what actually happens while print . is i am not understood.
plz help
答
希望此 [ ^ ]可能会帮助您.
Hope this[^] might help you.
这是因为大多数RTF编辑器根据编辑器的功能性对内容进行不同的处理.您还可以在Internet上找到许多有关RTF版本spesifications的信息.
这些可以帮助您了解在编辑或更改RTF文件内容时到底发生了什么.
富文本格式(RTF)1.5版规范
This is because most RTF Editors handle content differently, based funtionality of the editors. There is also a lot of information you can find on Internet about RTF Version spesifications.
these may help you understand what exactly happens when you edit or wich to change the content of an RTF file.
Rich Text Format (RTF) Version 1.5 Specification
There is no RTF table group; instead, tables are specified as paragraph properties. A table is represented as a sequence of table rows. A table row is a continuous sequence of paragraphs partitioned into cells. The table row begins with the \trowd control word and ends with the \row control word. Every paragraph that is contained in a table row must have the \intbl control word specified or inherited from the previous paragraph. A cell may have more than one paragraph in it; the cell is terminated by a cell mark (the \cell control word), and the row is terminated by a row mark (the \row control word). Table rows can also be positioned. In this case, every paragraph in a table row must have the same positioning controls (see the <apoctl> controls on page 29 of this Application Note). Table properties may be inherited from the previous row; therefore, a series of table rows may be introduced by a single <tbldef>.