c# - Save paragragh formatting on splitting rich text -


i have complicated method of rendering richtext using richtextbox. if rich text don't fit on pages, use selectionstart, selectionlength , selectedrtf properties part of rich text. after getting part of rich text, paragraph formatting lost. example, line spacing.

how to part of rich text right formatting using standard .net framework methods?

i don't need copy rich text formatting. need split rich text if don't fit in 1 page. , if there paragraph formatting lost. here sample left margin , line spacing lost.

enter image description here

okay, due complexity of require, i'm not sure rich text box correct solution. know may have spent time implementing hear me out - your going run lot of problems here splitting you're doing because in many cases, formatting text copying not easy extract , doesn't take realize how complicated , non-standard rtf format is.

trying rtf want if you're doing non standard not worth effort. in these cases worth backtracking, , running other options. consider working html control instead, , future features want add easier too.

and depending on complexity , other features require, recommend use existing html handling control , spend little money on it. time saving here ridiculous.

try this

(i not affiliated company, have used control before)

if insist on using rtf, have difficulty simple tasks 1 describe. html on other hand, problem swiftly solved, formatting can either applied css whole 'box' or single element can copied / extracted.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -