Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Formatting of XamRichEditor is lost when copied over to word or excel
posted

As a reference, below is the snippet of code am using for demonstartion purpose, and rte is the object of type xamRichTextEditor control.

CharacterSettings cs = new CharacterSettings()
{
Bold = true,
Italics = true,
FontSize = new Extent(24, ExtentUnitType.Points),
FontSettings = new FontSettings() { Ascii = "Consolas" }
};
TextNode tn = new TextNode();
tn.Text = "Styled content";
RunNode rn = new RunNode();
rn.Settings = cs;
rn.ChildNodes.Add(tn);
ParagraphNode pn = new ParagraphNode();
pn.ChildNodes.Add(rn);
this.rte.Document.RootNode.Body.ChildNodes.Add(pn);

And when i copy the "Styled content"  text of the control, and paste into word, only the text is getting copied, the italic format is being lost.

Parents
No Data
Reply
  • 25665
    Offline posted

    Hello Sowmya,

    Thank you for contacting Infragistcis!

    I have tested this behavior and have been able to reproduce it. I have logged it for further investigation. I have also created a private case where I will provide you with more details.

Children
No Data