retrieval of bold text - InfoPath Dev
in

InfoPath Dev

retrieval of bold text

Last post 11-21-2007 08:31 AM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-05-2007 08:25 PM

    • Brandon
    • Not Ranked
      Male
    • Joined on 11-04-2007
    • Georgia
    • Posts 1

    retrieval of bold text

    In Infopath, I have a form in which users write reports of their daily activity in a rich text field.  Some events are more important than others, and are marked in bold .  What I am wanting to do, is somehow automatically retrieve all of the bold text in the RTF, and copy it to another field, so higher management can see just the important details of the day.   I'm not sure how to do this, however.   Any ideas?

  • 11-21-2007 08:31 AM In reply to

    If you get the InnerXml of the Rich Text node, it will be parsable XHTML content.  You can load this into a seperate DOM object and browse through it just like any other XML.  Once you have this setup, you can query with XPath to find all of the <b> elements, and then copy their contents to the other field.

     Hope this helps!  Please copy the code here when you get done, I'd be interested to see it.

    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.