<?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>Converting to MHT</title><link>https://www.infopathdev.com:443/forums/thread/51358.aspx</link><pubDate>Wed, 03 Feb 2010 15:30:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51358</guid><dc:creator>lokans</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51358</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I need to develop the following application:&lt;/p&gt;&lt;p&gt;Obtain all the items on a list on Sharepoint (Ready and working)&amp;nbsp;&amp;nbsp;&amp;nbsp; * The items are XML (Infopath filled xsn files)&lt;br /&gt;Take one file, and read the XML to get some info (Ready and working)&lt;br /&gt;Take this XML and Export it to MHT (Here&amp;#39;s my problem...)&lt;/p&gt;&lt;p&gt;&amp;nbsp;Well.. i want to &amp;quot;open&amp;quot; and XML (i have the XSL too to open it) and export it to MHT&lt;/p&gt;&lt;p&gt;All the code must be C# and outside of &amp;quot;Infopath&amp;quot;, its an Console Application... i already tested with the Interop options but dosn&amp;#39;t work for another reasons... so... i have the XSL, but is the one from i get from Infopath, i tried using the ObjectModel of Microsoft.Office.Infopath; but no clue about that..&lt;/p&gt;&lt;p&gt;It&amp;#39;s possible something like this...&lt;br /&gt;InfopathFile info = new InfopathFile( &amp;lt; the xls &amp;gt;, &amp;lt;the xml&amp;gt;)&lt;br /&gt;and then... info.ExportToMht();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any idea?&lt;/p&gt;&lt;p&gt;Greetings. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>