I am using Infopath 2003 with VBScript. I have a rich text field that I populate from an XML source.
Currently when I load it using .text method, the html formatting tags show up, rather than the actual formatting.
I found a few tutorials online, but they didnot help.
http://us.generation-nt.com/answer/how-set-rich-text-content-xhtml-control-using-vbscript-help-73846842.html
xhtml= "<myns xmlns="+ chr(34)+ "http://www.w3.org/1999/xhtml"+chr(34)+">" +xhtml + "</myns>"
set xmlRichText=CreateObject("MSXML2.DOMDocument.5.0")
xmlRichText.async="false"
xmlRichText.loadXML(xhtml)
Set node= XDocument.DOM.documentElement.SelectSingleNode("/my:myFields/my:myRichText")
node.appendChild(xmlRichText.firstChild)
reason it didnot work - infopath 2003 doesnot have innerchild/firstchild method in jscript or vbscript
Is there way to format the rich text field with XHTML (using vbscript)?
thanks in advance