<?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: Open a .NET web part and Excel template on InfoPath button or any control's click event</title><link>https://www.infopathdev.com:443/forums/thread/39954.aspx</link><pubDate>Wed, 25 Mar 2009 06:21:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39954</guid><dc:creator>ligeshkoshy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39954</wfw:commentRss><description>&lt;p&gt;Hi All&lt;/p&gt;
&lt;p&gt;After some R&amp;amp;D &amp;nbsp;, i had a workaround. &lt;/p&gt;
&lt;p&gt;&lt;u&gt;Webpart on Button click&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;Create a blank webpart page in MOSS site , add a page viewer webpart , add your web page / ascx page into it. Code should have elements to fetch values from quesry string. In the InfoPath 2007 form add a textbox which is change to hyperlink in design mode.In any trigger event/form loading event , built the URL and set the value in the hyperlink turned textbox.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; strRequestURL = _strWebpartURL + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;?strReqID=&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + _strExcpRequestID;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;//Set the doc URL&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; nav = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/&amp;lt;xpath of textbox&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;nav.SetValue(strRequestURL);&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;When deployed , we can this textbox as a link.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Open a .NET web part and Excel template on InfoPath button or any control's click event</title><link>https://www.infopathdev.com:443/forums/thread/39350.aspx</link><pubDate>Tue, 10 Mar 2009 04:30:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39350</guid><dc:creator>ligeshkoshy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39350.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39350</wfw:commentRss><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It could be a simple question. I wish to know whether&amp;nbsp;its possible to open up a .NET webpart and Excel template from an InfoPath 2007 form button click event. It is also okay if in the InfoPath 2007 hyperlink control we can pass query string variables to the web part..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any input is appreciated.&lt;/p&gt;</description></item></channel></rss>