Hi,
I am working on Infopath 2010 and I try to transform Infopath form to html using below code
SPFile file = folder.Files["Infopathform.xml"];
byte[] contents = file.OpenBinary();
string xml = Encoding.UTF8.GetString(contents);
XmlDocument doc = new XmlDocument();
System.IO.StringWriter sw = new System.IO.StringWriter();
doc.LoadXml(xml);
transform.Transform(doc.CreateNavigator(), new XsltArgumentList(),sw);
htmlText = sw.ToString();
But I am getting below exception when executing transform.
Cannot
find the script or external object that implements prefix
'http://schemas.microsoft.com/office/infopath/2006/xslt/User'.
Please help me to resolve this issue.
Thanks,
Siva