<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Export xml to mht</title><link>https://www.infopathdev.com:443/forums/thread/51947.aspx</link><pubDate>Fri, 19 Feb 2010 16:09:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51947</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51947</wfw:commentRss><description>&lt;p&gt;Is &amp;#39;view&amp;#39; supposed to be capitalized in the line with the error? What about &amp;#39;mht&amp;#39;? In the &lt;a href="http://msdn.microsoft.com/en-us/library/aa679524(office.11).aspx"&gt;MSDN documentation&lt;/a&gt;, it looks like &lt;strong&gt;View&lt;/strong&gt; and &lt;strong&gt;MHT&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Export xml to mht</title><link>https://www.infopathdev.com:443/forums/thread/51809.aspx</link><pubDate>Tue, 16 Feb 2010 13:58:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51809</guid><dc:creator>Bobby1977</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51809</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m getting a error when I want to export a XML file to mht. I have a vbscript that opens a xml file and it must then export it to mht.&lt;/p&gt;
&lt;p&gt;The error I&amp;#39;m gettig is :&lt;br /&gt;Infopath has encountered an error. The Operation failed.&lt;br /&gt;The form cann&amp;#39;t be exported.&lt;br /&gt;The paramenter is incorrect&lt;br /&gt;&lt;br /&gt;Code 80070057&lt;br /&gt;Source infopath&lt;br /&gt;&lt;br /&gt;It is en form published on our intranet site. &lt;br /&gt;I need to export the xml to mht.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Set appInfoPath = CreateObject(&amp;quot;InfoPath.Application&amp;quot;)&lt;br /&gt;&lt;br /&gt;appInfoPath.XDocuments.Open(xmlFile)&lt;br /&gt;appInfoPath.XDocuments(0).View.ForceUpdate&lt;br /&gt;&lt;em&gt;appInfoPath.XDocuments(0).view.Export mhtLocation, &amp;quot;mht&amp;quot; ( this is where&amp;nbsp;I get the error)&lt;br /&gt;&lt;/em&gt;&amp;nbsp;appInfoPath.XDocuments(0).Close &lt;br /&gt;appInfoPath.Quit&lt;/p&gt;</description></item></channel></rss>