<?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: Automatically Name form and submit it to network drive with a submit button</title><link>https://www.infopathdev.com:443/forums/thread/81651.aspx</link><pubDate>Wed, 15 Aug 2012 13:08:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81651</guid><dc:creator>nsodmordex</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81651</wfw:commentRss><description>solved my own issues.  Thanks</description></item><item><title>Automatically Name form and submit it to network drive with a submit button</title><link>https://www.infopathdev.com:443/forums/thread/81650.aspx</link><pubDate>Wed, 15 Aug 2012 12:57:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81650</guid><dc:creator>nsodmordex</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81650.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81650</wfw:commentRss><description>Nevermind, I realized that I was using thisXDocument, but in the script I was using I actually needed to be using XDocument.  I still have one error though, now when I click submit I receive an error that says make sure the disk is not full, write protected or damage.  I have full access to the drive, and the security settings have already been changed on the form to grant it full access to the folder as well.  Any suggestions?</description></item><item><title>Automatically Name form and submit it to network drive with a submit button</title><link>https://www.infopathdev.com:443/forums/thread/81648.aspx</link><pubDate>Wed, 15 Aug 2012 12:26:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81648</guid><dc:creator>nsodmordex</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81648</wfw:commentRss><description>I am trying to set up an InfoPath template that will automatically name a form, and place it in a specific network folder.  I was able to get this to work without using fields to name the file, but now that I am trying to use the fields I am getting an error that reads: &amp;#39;Object Required: thisXDocument&amp;#39;, File: script.vbs Line: 31.                                                                                               I have three fields that affect the name and placement of the file.  The goal is to direct InfoPath to a folder, and then have it within that folder create a folder with the Product Name, and then another folder that would be the Product Number Revision - Serial Number.  Then the file name would have the same title as that folder.

Here is the code I wrote:

Dim txtpart
Dim txtrev
Dim txtserial 
Dim txtPath
Dim txtDash
Dim txtSlash
Dim txtext

txtpart = thisXDocument.DOM.selectSingleNode(&amp;quot;//my:myfields/my:PartNumber&amp;quot;).text
txtrev = thisXDocument.DOM.selectSingleNode(&amp;quot;//my:myfields/my:Rev&amp;quot;).text
txtserial = thisXDocument.DOM.selectSingleNote(&amp;quot;//my:myfields/my:SerialNumber&amp;quot;).text
txtPath = &amp;quot;\\seusefnpgra001\public\First Time Builds\&amp;quot;
txtDash = &amp;quot;-&amp;quot;
txtSlash = &amp;quot;\&amp;quot;
txtext = &amp;quot;.xml&amp;quot;

XDocument.SaveAs(txtPath &amp;amp; txtpart &amp;amp; txtSlash &amp;amp; txtpath &amp;amp; txtrev &amp;amp; txtDash &amp;amp; txtserial &amp;amp; txtSlash &amp;amp; txtpart &amp;amp; txtrev &amp;amp; txtDash &amp;amp; txtserial &amp;amp; txtext)


Does anyone see what I am doing wrong?
The form security has been set to full access.</description></item></channel></rss>