RichText Box formatting - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

RichText Box formatting

Last post 05-27-2009 12:38 AM by arunk.krish. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-19-2009 05:55 AM

    RichText Box formatting

    How can I set the formatting of an InfoPath RichTextBox programatically?

    I am setting the RichTextBox value through code behind like below.

    APRemarks.SetValue(node.SelectSingleNode("/my:myFields/my:CommentsSection/my:txtComments", NamespaceManager).ToString())

    When I try to enter multiline text, the richtext box formatting like font, paragraph breaks, <br>, style is not appearing during runtime.

    Can anyone please help me to achieve this.

    Thanks in Advance.

    Filed under:
  • 05-27-2009 12:25 AM In reply to

    Re: RichText Box formatting

    Sorry Afunk.Kfish but you just can't do it. It's too hard. Believe me, we've tried.

    Patrick Halstead
    Project Manager at Qdabra
  • 05-27-2009 12:38 AM In reply to

    Re: RichText Box formatting

    Many Thanks for your reply.

    Even I tried with passing the text as XML Node to a Web Service and setting XML return type as datasource for RTB from Webservice (WS).

    As the Data type of XPath, i.e. RTB.SetValue("XML Node returned by webservice") is string,  the XHTML tags returned by Webservice XML are also treated as string and appended to original text.

    Filed under: , ,
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.