<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: File Attachment Control Does Not Display File</title><link>https://www.infopathdev.com:443/forums/thread/11894.aspx</link><pubDate>Wed, 30 Aug 2006 14:47:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11894</guid><dc:creator>danielNAthens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11894.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11894</wfw:commentRss><description>Matt, &lt;br /&gt;Thanks for the reply.  Unfortunately, this is a known bug with Infopath. File attachments were not orginally part of Infopath; they came with SP1.  There is a special processing instruction needed at the top of the infopath xml to activate file attachments.  I believe it is something like &lt;pre&gt;&amp;lt;?mso-infopath-file-attachments-present?&amp;gt;&lt;/pre&gt;.  When I open my infopath form for editing, I call the method NewSolutionWithData.  This method strips out the processing instruction for file attachments.  The data is still there, but the user cannot interact with it.  See the following document on the MSDN:&lt;br /&gt;&lt;a href='http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_ta/html/odc_InfoPath_attaching_files.asp' target='_blank' title='http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_ta/html/odc_InfoPath_attaching_files.asp'&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_ta/html/odc_InfoPath_attaching_files.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_ta/html/odc_InfoPath_attaching_files.asp&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; &lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;When the NewFromSolutionWithData method is used to create a new form based on a form template, file attachment controls in the form will be disabled until the form is saved and reopened.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;I think they will resolve the bug in Office 2007.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Ben Daniel&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Matt Faus&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Ben,&lt;br /&gt;&lt;br /&gt;This seems like a weird bug.  Are you 100% sure that the DB does nothing to alter the XML at all?  What is the data type of the column that you are storing it in?  For InfoPath to display the file in the file attachment control it has to have a specific header with some special information in it and if this stuff gets mangled in any way it won't display even if the base64 string is there.&lt;br /&gt;&lt;br /&gt;If possible, could you paste the base64 string that is giving you trouble so we could try it out?&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: File Attachment Control Does Not Display File</title><link>https://www.infopathdev.com:443/forums/thread/11893.aspx</link><pubDate>Wed, 30 Aug 2006 01:22:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11893</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11893</wfw:commentRss><description>Hi Ben,&lt;br /&gt;&lt;br /&gt;This seems like a weird bug.  Are you 100% sure that the DB does nothing to alter the XML at all?  What is the data type of the column that you are storing it in?  For InfoPath to display the file in the file attachment control it has to have a specific header with some special information in it and if this stuff gets mangled in any way it won't display even if the base64 string is there.&lt;br /&gt;&lt;br /&gt;If possible, could you paste the base64 string that is giving you trouble so we could try it out?</description></item><item><title>File Attachment Control Does Not Display File</title><link>https://www.infopathdev.com:443/forums/thread/11714.aspx</link><pubDate>Wed, 23 Aug 2006 20:03:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11714</guid><dc:creator>danielNAthens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11714</wfw:commentRss><description>I have an infopath form that has it's data stored in a database (the xml dom), stored in a database. I can retrieve the xml from the database and pop it into my template's DOM and all the data comes back correctly.  However, the file attachment is not behaving as it should.  &lt;br /&gt;&lt;br /&gt;Even though I have pulled the xml and verified that the attachment is indeed present (it's a base64 encoded string), the file control on the form shows up as empty.  Furthermore, when I click the file attachment control, the file open dialog does not appear.  This also happens when I try to open a form that has no file attached.  The file attachment does work when I open a blank form.&lt;br /&gt;&lt;br /&gt;Any thoughts or ideas about this?&lt;br /&gt;&lt;br /&gt;Thanks.</description></item></channel></rss>