<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Snapshooting a form and save as file attachment</title><link>https://www.infopathdev.com:443/forums/thread/14554.aspx</link><pubDate>Mon, 22 May 2006 15:15:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14554</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14554</wfw:commentRss><description>Yes, you should be able to do this by using the method Greg described.  I hope you are using managed code, because that will make things easier.&lt;br /&gt;&lt;br /&gt;string myxml = thisXDocument.DOM.xml;&lt;br /&gt;string myxml_base64 = base64Encode( myxml );&lt;br /&gt;&lt;br /&gt;The base64Encode method can be found here:&lt;a target="_blank" href=http://www.vbforums.com/showthread.php?s=&amp;threadid=287324&gt;http://www.vbforums.com/showthread.php?s=&amp;threadid=287324&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you are using JScript or VBScript you'll need to scour the internet for some base64 methods that other people have written. Or maybe write one yourself. But if you do this, please share!</description></item><item><title>Re: Snapshooting a form and save as file attachment</title><link>https://www.infopathdev.com:443/forums/thread/14553.aspx</link><pubDate>Mon, 22 May 2006 07:11:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14553</guid><dc:creator>pmarquardt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14553</wfw:commentRss><description>Hello Greg,&lt;br /&gt;&lt;br /&gt;thanks for your answer!&lt;br /&gt;&lt;br /&gt;If you take the "Send as E-Mail"-function/data connection for example. There you have the possibility to send the current form as an attachment (*.xml). This file is exactly what I need.&lt;br /&gt;&lt;br /&gt;By clicking a button, I want the form to be stored in a base64 field, being identical to the one sent as an mail-attachment.&lt;br /&gt;&lt;br /&gt;Hope I made myself clear ;)&lt;br /&gt;&lt;br /&gt;Thanks in advance</description></item><item><title>Re: Snapshooting a form and save as file attachment</title><link>https://www.infopathdev.com:443/forums/thread/14552.aspx</link><pubDate>Fri, 19 May 2006 19:49:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14552</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14552.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14552</wfw:commentRss><description>What kind of a snapshot are you looking for?&lt;br /&gt;&lt;br /&gt;Visual: that occurs when users sign the form... a graphical snapshot is created.&lt;br /&gt;&lt;br /&gt;XML: You will likely need to do the base64 conversion yourself in code, and you'd get what you want by getting XDocument.DOM.xml</description></item><item><title>Snapshooting a form and save as file attachment</title><link>https://www.infopathdev.com:443/forums/thread/12867.aspx</link><pubDate>Thu, 18 May 2006 07:21:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12867</guid><dc:creator>pmarquardt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12867.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12867</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I created an InfoPath form with a base64 field on it. When clicking a button, I want the current form to be stored in that field (thus the form being stored in itself, a kind of snapshot).&lt;br /&gt;&lt;br /&gt;Which XPath (or vbScript) expression do I have to use (like "field1 = document.this"?)?</description></item></channel></rss>