<?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: Problem with stored procedures and InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/41026.aspx</link><pubDate>Mon, 27 Apr 2009 20:28:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41026</guid><dc:creator>ghporras</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41026</wfw:commentRss><description>&lt;p&gt;I have found something more:&lt;/p&gt;
&lt;p&gt;I cannot access the XDocument members.&lt;/p&gt;
&lt;p&gt;After a . (dot) in XDocument the intellisense show only two methods: Equals and ReferenceEquals.&lt;/p&gt;
&lt;p&gt;My InfoPath is in Spanish.&lt;/p&gt;
&lt;p&gt;Someone can help me?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem with stored procedures and InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/41024.aspx</link><pubDate>Mon, 27 Apr 2009 18:53:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41024</guid><dc:creator>ghporras</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41024.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41024</wfw:commentRss><description>&lt;p&gt;I dont know if its important, but you must know that the SQL Server is other server... Its different from my machine.&lt;/p&gt;
&lt;p&gt;An in my machine I have the InfoPath form!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem with stored procedures and InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/41023.aspx</link><pubDate>Mon, 27 Apr 2009 18:45:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41023</guid><dc:creator>ghporras</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41023.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41023</wfw:commentRss><description>&lt;p&gt;Hello Madhuri...&lt;/p&gt;
&lt;p&gt;I still have the same problem.. The Error is about a reference &amp;#39;Microsoft.Office.Interop.InfoPath.SemiTrust._XDocument2.QueryAdapter.get&amp;#39;. &lt;/p&gt;
&lt;p&gt;Also that the &amp;#39;object&amp;#39; has no definitions for &amp;#39;Command&amp;#39;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is my code:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Microsoft.Office.InfoPath;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Microsoft.Office.Interop.InfoPath.SemiTrust;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Windows.Forms;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Xml;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Xml.XPath;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Data;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Data.SqlClient;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; mshtml;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;partial&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;class&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;FormCode&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; InternalStartup()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;((&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ButtonEvent&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)EventManager.ControlEvents[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;CTRL3_5&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;]).Clicked += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ClickedEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(CTRL3_5_Clicked);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CTRL3_5_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.QueryAdapter.Command = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;execute&amp;nbsp;mySp &amp;#39;20090401&amp;#39;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Query();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Problem with stored procedures and InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/41012.aspx</link><pubDate>Mon, 27 Apr 2009 12:52:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41012</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41012.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41012</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;you should add namespace using System.Data.SqlClient;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Replace &amp;nbsp;below line&amp;nbsp;XDocument.QueryAdapter.Command with below lline&lt;/p&gt;string&lt;/font&gt;&lt;font size="2"&gt; text1 = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;This is a test&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;XDocument.QueryAdapter.Command&amp;nbsp; = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;.Format(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;execute dbo.mysp &amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + text1 + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39; &amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;dbo.mysp is the name of you sproc and text1 is the value of the parameter that needs to be passed to execute the sproc.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Problem with stored procedures and InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/41009.aspx</link><pubDate>Mon, 27 Apr 2009 12:25:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41009</guid><dc:creator>ghporras</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41009</wfw:commentRss><description>&lt;p&gt;Hello...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to work with a stored procedure (from SQl 2005) in my Infopath 2007.&lt;/p&gt;
&lt;p&gt;I found this Microsoft article: &lt;a href="http://msdn.microsoft.com/en-us/kb/kb00827007.aspx"&gt;http://msdn.microsoft.com/en-us/kb/kb00827007.aspx&lt;/a&gt; but I have problems with this simple code:&lt;/p&gt;
&lt;p&gt;XDocument.QueryAdapter.Command = &amp;quot;execute mysp &amp;#39;This is a test&amp;#39; &amp;quot;;&lt;br /&gt;XDocument.Query(); &lt;/p&gt;
&lt;p&gt;First I received that the XDocument doesnt exits in the actual context.&lt;/p&gt;
&lt;p&gt;After search in Google I found as solution to add the reference: Microsoft.Office.Interop.InfoPath.SemiTrust.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using Microsoft.Office.InfoPath;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using Microsoft.Office.Interop.InfoPath.SemiTrust;&amp;nbsp; &amp;lt;&amp;lt;&amp;lt; NEW LINE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using System;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using System.Windows.Forms;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using System.Xml;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using System.Xml.XPath;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using mshtml;&lt;/p&gt;
&lt;p&gt;But when added this dll I get another error. InfoPath is not getting XDocument.QueryAdapter as a Static object and it needs a reference. Also that XDocument.QueryAdapter doen&amp;#39;t have a definition for &amp;#39;Command&amp;#39;.&lt;/p&gt;
&lt;p&gt;Can someone help me what it&amp;#39;s going on with the Microsoft example? Or maybe if you can tell me another page with a parameterized stored procedures and InfoPath 2007.&lt;/p&gt;
&lt;p&gt;Thanks a lot of.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>