简体   繁体   中英

Insert Page break in Richtextbox

How to insert Page Break 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM