开发者

Insert Page break in Richtextbox

How to insert Page Break 开发者_Go百科in RichTextBox?

Thanks!


I found this for you.

The \\page indicates the beginning of a new page.


I appended chr(12) in my VB application (that is the Form Feed ASCII character) to insert a page break. Note that you won't see the page break in the Rich Text Box, but it will appear if you save it and open the file in Word, or if you print the contents.

There are RTF control codes documented here: Rich Text Format 1.5 specification that you can use, but inserting Chr(12) worked well enough for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜