<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Another Button Control Opening a Web Page Question</title><link>https://www.infopathdev.com:443/forums/thread/39290.aspx</link><pubDate>Fri, 06 Mar 2009 15:51:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39290</guid><dc:creator>Psichiboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39290</wfw:commentRss><description>&lt;p&gt;Thanks for the quick response.&lt;/p&gt;
&lt;p&gt;Yes, the file is available via SharePoint. What I don&amp;#39;t understand is that when I test this using the IP client (debugging through VSTO) it runs fine, but once it&amp;#39;s published to SharePoint it stops working. I&amp;#39;ve tried placing the file in a file share on the network as well as on the C drive of the SharePoint server and nothing works.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item><item><title>Re: Another Button Control Opening a Web Page Question</title><link>https://www.infopathdev.com:443/forums/thread/39246.aspx</link><pubDate>Fri, 06 Mar 2009 02:28:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39246</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39246</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you check do you have permissions to access that SharePoint site? Can you try to open that PDF file with complete URL in IE window? Is it that PDF file is available in network machine?&lt;/p&gt;</description></item><item><title>Another Button Control Opening a Web Page Question</title><link>https://www.infopathdev.com:443/forums/thread/39235.aspx</link><pubDate>Thu, 05 Mar 2009 20:44:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39235</guid><dc:creator>Psichiboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39235</wfw:commentRss><description>&lt;p&gt;I looked through Almeida&amp;#39;s &lt;a class="" href="http://www.infopathdev.com/forums/t/9698.aspx" target="_blank"&gt;post&lt;/a&gt; about using a button to open a web page however that solution is not working for me. My IP form is being hosted on a SharePoint 2007 Forms Server. &lt;/p&gt;
&lt;p&gt;I have a button on my IP form that uses rules and custom code. When the button is pressed the form should: 1) update a field in the XML and 2) open a PDF file hosted on my SharePoint site. I have the following code for my button:&lt;/p&gt;&amp;nbsp;&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;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; btn_CodeofEthics_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&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;Object&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;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ClickedEventArgs)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Opens the PDF file&lt;/p&gt;&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;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; proc &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&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;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Diagnostics.Process()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;proc.StartInfo.FileName = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;iexplore&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;proc.StartInfo.Arguments = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;http://intranet/Documents/COEcurrent.pdf&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;proc.Start()&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&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;Sub&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The code runs fine when I&amp;#39;m debugging it from my workstation, but when I publish&amp;nbsp;the form to SharePoint and press the button, I get the following error:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Event Type:&amp;nbsp;Warning&lt;br /&gt;Event Source:&amp;nbsp;Office SharePoint Server&lt;br /&gt;Event Category:&amp;nbsp;Forms Services Runtime - Business Logic &lt;br /&gt;Event ID:&amp;nbsp;5337&lt;br /&gt;Date:&amp;nbsp;&amp;nbsp;3/5/2009&lt;br /&gt;Time:&amp;nbsp;&amp;nbsp;3:20:52 PM&lt;br /&gt;User:&amp;nbsp;&amp;nbsp;N/A&lt;br /&gt;Description:&lt;br /&gt;Business logic failed due to an exception. (User: NETWORK\User_A, Form Name: PolicyCertification, IP: , Request: &lt;a href="http://intranet/_layouts/Postback.FormServer.aspx"&gt;http://intranet/_layouts/Postback.FormServer.aspx&lt;/a&gt;, Form ID: urn:schemas-microsoft-com:office:infopath:PolicyCertification:-myXSD-2008-02-29T16-34-05, Type: Win32Exception, Exception Message: Access is denied)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can anyone help with this issue please?&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item></channel></rss>