<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: email attachment file name</title><link>https://www.infopathdev.com:443/forums/thread/3199.aspx</link><pubDate>Wed, 20 Dec 2006 13:15:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3199</guid><dc:creator>Sam </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3199.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3199</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;I have used the above code to find a the SP document library path   and the file name i want to attach with my current form. &lt;br /&gt;Sorry but am i suppose to replace &lt;b&gt;Forms&lt;/b&gt; in ( solutionUri.LastIndexOf("/Forms/");) with my docuemnt library path name which ends with .aspx. &lt;br /&gt;&lt;br /&gt;Where else am i supposed to make changes. &lt;br /&gt;&lt;br /&gt;I have a form where i want to be able to find and attach any form from my document library and use email submit(figured this one by code)to send my form.&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: email attachment file name</title><link>https://www.infopathdev.com:443/forums/thread/3198.aspx</link><pubDate>Fri, 29 Sep 2006 07:22:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3198</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3198.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3198</wfw:commentRss><description>Hi Cornik,&lt;br /&gt;&lt;br /&gt;If you are saving those xml files to share point then you can get the Share point Folder path and File Name as below the code.&lt;br /&gt;&lt;br /&gt;Private string GetSharepointFolderPath()&lt;br /&gt;{&lt;br /&gt;	string solutionUri = thisXDocument.Solution.URI;&lt;br /&gt;	int position = solutionUri.LastIndexOf("/Forms/");&lt;br /&gt; 	if(position == -1)&lt;br /&gt;{&lt;br /&gt;		return "";&lt;br /&gt;}&lt;br /&gt;position = solutionUri.LastIndexOf("/", position - 1);&lt;br /&gt;return position == -1 ? "" : solutionUri.Substring(0, position + 1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private string FileName()&lt;br /&gt;{&lt;br /&gt;	string uri = thisXDocument.URI;&lt;br /&gt;	int position = uri.LastIndexOf("/");&lt;br /&gt;	string fileName = uri.Substring(position + 1);&lt;br /&gt;	return fileName;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;These methods return the share point library path and file name of the xml. If you are saving in local folder then you need to specify the where you are going to save the xml file path in code.&lt;br /&gt;&lt;br /&gt;Note: The above code in C#.&lt;br /&gt;</description></item><item><title>Re: email attachment file name</title><link>https://www.infopathdev.com:443/forums/thread/3197.aspx</link><pubDate>Thu, 28 Sep 2006 21:49:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3197</guid><dc:creator>cornik99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3197</wfw:commentRss><description>Thanks Shiva.  But can you please tell me how to code to create the url link.  Should I first save the file to a folder first and then create the link to the saved xml file?  How do I do it all in codes?</description></item><item><title>Re: email attachment file name</title><link>https://www.infopathdev.com:443/forums/thread/3196.aspx</link><pubDate>Sat, 16 Sep 2006 04:17:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3196</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3196</wfw:commentRss><description>Hi Cornik,&lt;br /&gt;&lt;br /&gt;Yes it is possible to send the URL in your mail.&lt;br /&gt;&lt;br /&gt;1. You need to go to Data Connection. In the Designer, go to Tools-&amp;gt;Data Connections and click Add. Select Submit data and click Next. Select "As an e-mail message" and click next. A dialog will appear that has lines for To:, Cc:, Bcc:, Subject:, Intro, and form attachment. Click on the "fx" button next to the Subject: line and click Insert Field or Group. Select the Field from your main data source. Click OK. Which use the employee name for the file name field and specify others if you want. Click Next.&lt;br /&gt;&lt;br /&gt;2. Here is the code to send an email via code&lt;br /&gt;EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email Submit"];&lt;br /&gt;oEmail.To = "email1@abc.com; email2@abc.com";&lt;br /&gt;oEmail.CC = "email3@abc.com"; &lt;br /&gt;oEmail.Subject = "employeeName.xml";&lt;br /&gt;oEmail.Intro = "Intro";&lt;br /&gt;oEmail.Submit();&lt;br /&gt;&lt;br /&gt;Note: Above code is in c#</description></item><item><title>email attachment file name</title><link>https://www.infopathdev.com:443/forums/thread/1561.aspx</link><pubDate>Fri, 15 Sep 2006 19:18:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1561</guid><dc:creator>cornik99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1561</wfw:commentRss><description>I have a new hire form that gets updated by multiple departments from MIS, Purchasing, Hiring Mgr and so on.  I want to know how we can save all filled out forms to a folder should we need to create report.  Can someone tell me I can change the attachment to form1 to a more meaningful name.  After submit it asked me to save the form in which I use the employee name for the file name.  The employeeName.xml doesn't get updated when I tried to open the attachment on the email, it was using form1.  Why save the xml file when you can't link to it for further updates?</description></item></channel></rss>