Hello,
I'm trying export a text to HTML using xamRichTextEditor. But always there is a paragraph style with margin-bottom: 10pt.
Can I set paragraph 0px for all document by default?
Thanks.
Hello Rob,
Your sample works perfectly to me.
Thank you very much.
Hi nandoviski,
Thank you for your patience. I have attached a sample application that shows how you can remove the margin. The developers have pointed me in the right direction for removing this that does not involve modifying the exported file. Rather it changes some settings in the text editor itself. Specifically a ParagraphStyle that is inside the RichTextDocument.
Take a look at my sample and let me know if you have any questions.
The only way I can think of right now is to directly modify the HTML text. You can export it to a Stream object and then use a StreamReader to get the text out of it. Then change the margin and save the text to a file.
I'm checking with the developers to see if there is a way to do this from within the control itself rather than editing the text like that.