<?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: Can't pass variable to NewFromSolutionWithData?</title><link>https://www.infopathdev.com:443/forums/thread/23921.aspx</link><pubDate>Tue, 23 Oct 2007 10:19:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23921</guid><dc:creator>Helen.Trim</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23921.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23921</wfw:commentRss><description>&lt;p&gt;Hello Paul &lt;/p&gt;
&lt;p&gt;Did you ever find a solution to this problem?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I am having the same thing happen to me.&amp;nbsp; It works with the parameters as strings, but not as variables.&lt;/p&gt;
&lt;p&gt;Can you help?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Helen&lt;/p&gt;</description></item><item><title>Re: Can't pass variable to NewFromSolutionWithData?</title><link>https://www.infopathdev.com:443/forums/thread/18200.aspx</link><pubDate>Tue, 24 Oct 2006 18:13:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18200</guid><dc:creator>pdjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18200.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18200</wfw:commentRss><description>Thanks for the reply! Actually, I had thought of that, but even with the \'s escaped I get the same error.</description></item><item><title>Re: Can't pass variable to NewFromSolutionWithData?</title><link>https://www.infopathdev.com:443/forums/thread/18199.aspx</link><pubDate>Tue, 24 Oct 2006 05:45:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18199</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18199.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18199</wfw:commentRss><description>Hello Paul,&lt;br /&gt;Welcome to the Forum!&lt;br /&gt;Try this, it should work for you.&lt;br /&gt;xmlPath = "C:\\temp\\CRS_51606_page_check_output.xml";&lt;br /&gt;templatePath = "C:\\temp\\pdfTestResults.xsn";&lt;br /&gt;objXDoc = Application.XDocuments.NewFromSolutionWithData(xmlPath,templatePath);&lt;br /&gt;&lt;br /&gt;Basically you are not setting escaping the "\" in the string.&lt;br /&gt;</description></item><item><title>Can't pass variable to NewFromSolutionWithData?</title><link>https://www.infopathdev.com:443/forums/thread/18038.aspx</link><pubDate>Mon, 23 Oct 2006 21:47:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18038</guid><dc:creator>pdjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18038.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18038</wfw:commentRss><description>Hi, I have the following code that I am using to create a new Form with data from xmlPath using the template in templatePath. When I execute the code as it is below, I get an error: Script error, the parameter is incorrect". &lt;br /&gt;&lt;br /&gt;Sub generateTestResults_OnClick(eventObj)&lt;br /&gt;&lt;br /&gt;xmlPath = "C:\temp\CRS_51606_page_check_output.xml"&lt;br /&gt;templatePath = "C:\temp\pdfTestResults.xsn"&lt;br /&gt;&lt;br /&gt;set objXDoc = Application.XDocuments.NewFromSolutionWithData(xmlPath,templatePath)&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;However, when I put the strings into the NewFromSolutionWithData method like so:&lt;br /&gt;&lt;br /&gt;set objXDoc = Application.XDocuments.NewFromSolutionWithData("C:\temp\CRS_51606_page_check_output.xml","C:\temp\pdfTestResults.xsn")&lt;br /&gt;&lt;br /&gt;it works fine! I need to be able to build these strings dynamically at runtime, so using the variables is important. Can someone help?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Paul</description></item></channel></rss>