<?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: File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59615.aspx</link><pubDate>Tue, 05 Oct 2010 08:57:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59615</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59615</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t actually have an xml file though - the xml is stored in sql server and is simply being streamed to the client in a Response.Write call.&lt;/p&gt;</description></item><item><title>Re: File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59572.aspx</link><pubDate>Mon, 04 Oct 2010 14:13:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59572</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59572.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59572</wfw:commentRss><description>&lt;p&gt;You can use the &lt;strong&gt;EditDocument2&lt;/strong&gt; method on the &lt;strong&gt;SharePoint.OpenXMLDocuments.1&lt;/strong&gt; object described in Shraz&amp;#39;s post to open XML files.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc264018.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc264018.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59571.aspx</link><pubDate>Mon, 04 Oct 2010 06:51:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59571</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59571</wfw:commentRss><description>&lt;p&gt;Yes, we have 2003 &amp;amp; 2007 installed. All PCs should be set to open 2007 by default but some try to use 2003 and get an error.&amp;nbsp; Some even open the xml in the browser, and I assume if people install another xml program it will usurp the file extension (on my PC sometimes it opens in Visual Studio).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I need to know which registry entries I need to tweek to ensure IP 2007 is associated with xml/xsn files.&amp;nbsp; If you know, that would be great.&lt;/p&gt;</description></item><item><title>Re: File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59514.aspx</link><pubDate>Fri, 01 Oct 2010 14:23:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59514</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59514</wfw:commentRss><description>&lt;p&gt;What exactly is the InfoPath 2003 v 2007 issue you mention?&lt;/p&gt;
&lt;p&gt;I see problems with folks who have both 2003 and 2007 installed on their machine, InfoPath often does&amp;#39;t know how to open that file (or gets confused about what version to open it in) and throws an error&lt;/p&gt;</description></item><item><title>Re: File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59513.aspx</link><pubDate>Fri, 01 Oct 2010 13:49:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59513</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59513.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59513</wfw:commentRss><description>&lt;p&gt;Still no-one there with an opinion/explanation?&amp;nbsp; I tried changing the mime type to text/xml and the xml simply opens in the Internet Explorer window - the download dialog lists the type as &amp;quot;xml file&amp;quot;.&amp;nbsp; Using the above mime type, IE correctly identifies the file as Infopath, yet I still have the 2003 vs 2007 issue...&lt;/p&gt;
&lt;p&gt;&lt;img style="WIDTH:389px;HEIGHT:171px;" title="IE download dialog" alt="IE download dialog" src="http://content.screencast.com/users/Graeme/folders/Snagit/media/2c88a5fd-a506-4ace-ba00-6d47165f8eeb/10.01.2010-15.47.08.png" width="389" height="171" /&gt;&lt;/p&gt;</description></item><item><title>Re: File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59374.aspx</link><pubDate>Tue, 28 Sep 2010 06:59:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59374</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59374.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59374</wfw:commentRss><description>&lt;p&gt;Yes, changing the setting on the machines to make Infopath the default xml editor fixes this - but I can never be sure users won&amp;#39;t install other software that usurps it again.&amp;nbsp; Besides, relying on a 3 character file name seems so 1980&amp;#39;s.&amp;nbsp; What is the purpose of setting the MIME type if it is ignored?&lt;/p&gt;
&lt;p&gt;I looked at Shiraz article, but that is only for xsn template files.&amp;nbsp; I need to open the xml file in Infopath, or rather the xml being streamed from the web server, as the file is stored in SQL Server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any other ideas?&lt;/p&gt;</description></item><item><title>Re: File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59352.aspx</link><pubDate>Mon, 27 Sep 2010 20:47:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59352</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59352.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59352</wfw:commentRss><description>&lt;p&gt;On the machines where InfoPath is installed but the XML opens in the other XML editor have you already tried to make sure that InfoPath is set as the default XML editor?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, this blog post from 2007 that Shiraz has might help, there is a way via script to ensure that InfoPath does open the XML, perhaps this might help: &lt;a href="http://www.infopathdev.com/blogs/shiraz/archive/2007/08/16/best-way-to-launch-forms-from-web-pages.aspx"&gt;http://www.infopathdev.com/blogs/shiraz/archive/2007/08/16/best-way-to-launch-forms-from-web-pages.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ted&lt;/p&gt;</description></item><item><title>File downloaded from website doesn't always open in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/59256.aspx</link><pubDate>Fri, 24 Sep 2010 09:48:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59256</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59256.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59256</wfw:commentRss><description>&lt;p&gt;I am downloading an Infopath form as&amp;nbsp;an xml string from IIS and want it to open in Infopath. I set the ContentType to &lt;strong&gt;&amp;quot;application/ms-infopath.xml&amp;quot;&lt;/strong&gt; (not sure where I got that from).&lt;/p&gt;
&lt;p&gt;On some machines it is fine, on others the xml opens in the browser, or in Visual Studio or some other xml editor, even though Infopath is present.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Who keeps the list of valid content types?&amp;nbsp; Is this a valid MIME type for Infopath?&lt;/li&gt;
&lt;li&gt;What does the OS or browser do with it?&amp;nbsp; It would appear it is only looking for the file association and not doing anything with the MIME type.&lt;/li&gt;
&lt;li&gt;How can I force this XML to open in&amp;nbsp;Infopath even if the user has some other application associated with .xml files?&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Here is the code - dead simple:&lt;/p&gt;&lt;pre style="FONT-FAMILY:consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.ClearHeaders();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.ClearContent();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.ContentType&amp;nbsp;=&amp;nbsp;&lt;span style="COLOR:#a31515;"&gt;&amp;quot;application/ms-infopath.xml&amp;quot;&lt;/span&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.AppendHeader(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;Content-disposition&amp;quot;&lt;/span&gt;,&amp;nbsp;&lt;span style="COLOR:#a31515;"&gt;&amp;quot;attachment;&amp;nbsp;filename=&amp;quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style="COLOR:#a31515;"&gt;Name&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.Write(&lt;span style="COLOR:#a31515;"&gt;InfopathDoc&lt;/span&gt;);&lt;br /&gt;&lt;/pre&gt;</description></item></channel></rss>