InfoPath 2003 Rich Text Box line seperation - InfoPath Dev
in

InfoPath Dev

InfoPath 2003 Rich Text Box line seperation

Last post 06-04-2010 03:10 AM by Niroshan. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-03-2010 10:56 AM

    InfoPath 2003 Rich Text Box line seperation

     Hi All,

    I am trying programatically load text to the Rich Text Box in a Infopath 2003 form using C# (I am not looking for a solution loading data using WebServices)

    normally seperate lines and text formatings are saved as <div> and <strong> tags.

    I need to bind these formating tags into Infopath Datasource nodes programatically.

    Pleas help me on this.

    Filed under: ,
  • 06-03-2010 11:43 AM In reply to

    Re: InfoPath 2003 Rich Text Box line seperation

     try setting the innerxml property of the control to the data recieved

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 06-03-2010 09:45 PM In reply to

    Re: InfoPath 2003 Rich Text Box line seperation

     I need to set RichTextBox value to a IXMLDOMNode.

     IXMLDOMNode does not have a property called InnerXml.

    Though It has a property called xml, it is read only.

    In the XmlDocument RichTextBox value is saved as follows

    <my:NdestScopeSummary>
            <div xmlns="http://www.w3.org/1999/xhtml">The Siemens Energy Non Destructive Examination (NDE) group conducted a ____________ {Scope of Work}   at the ________________________ plant in _____________________. The following report describes the components inspected, the NDE methods and   procedures used, and the inspection results.</div>
            <div xmlns="http://www.w3.org/1999/xhtml"> </div>
            <div xmlns="http://www.w3.org/1999/xhtml"><strong><font color="#ff0000">Niroshan Sinharage</font></strong></div>
            <div xmlns="http://www.w3.org/1999/xhtml"><strong><font color="#ff0000"></font></strong> </div>
            <div xmlns="http://www.w3.org/1999/xhtml"><strong><font color="#ff0000">Fazly Jabbar</font></strong></div>

    </my:NdestScopeSummary>
        

    Is there a way to convert this XmlNode (<my:NdestScopeSummary> node) to an IXMLDOMNode.

     

     

  • 06-04-2010 03:10 AM In reply to

    Re: InfoPath 2003 Rich Text Box line seperation

     Hi All,

    I found a solution for this issue..

    I used following code

     DOMDocument50 xmldoc = new DOMDocument50();
     XmlNamespaceManager nm = GetNamespaceManager();
     xmldoc.setProperty("SelectionNamespaces", "xmlns:my='http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-08T11-28-21'     xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'");

     xmldoc.async= false;
     xmldoc.validateOnParse = false;
     xmldoc.loadXML(xmlNode.OuterXml);
     domNode = (IXMLDOMNode)xmldoc;

     

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.