<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54420.aspx</link><pubDate>Sun, 02 May 2010 07:48:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54420</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54420.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54420</wfw:commentRss><description>&lt;p&gt;Hi Anis,&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;I guess I need some time off from all this technical stuff.&lt;/p&gt;
&lt;p&gt;Will get back to it after some time with a fresh mind.&lt;/p&gt;
&lt;p&gt;Will let u know how it turned out.&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54329.aspx</link><pubDate>Thu, 29 Apr 2010 05:39:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54329</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54329.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54329</wfw:commentRss><description>&lt;p&gt;&lt;font color="#0000ff"&gt;use below code.. you have changed the name of autopsy field... &amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font size="2"&gt; autopsy_no = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:autopsy.&amp;quot;&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;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&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;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; save_location = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;C:\\new folder\\&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;+autopsy_no+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;.pdf&amp;quot;&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;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.CurrentView.Export(save_location, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ExportFormat&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Pdf);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;
&lt;p&gt;make sure &amp;quot;&lt;font color="#800000"&gt;C:\\new folder&amp;quot;&amp;nbsp; exists&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54282.aspx</link><pubDate>Wed, 28 Apr 2010 17:07:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54282</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54282</wfw:commentRss><description>&lt;p&gt;Hi Prasad,&lt;/p&gt;
&lt;p&gt;Guess I am missing something, or is the box actually empty.&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54281.aspx</link><pubDate>Wed, 28 Apr 2010 17:06:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54281</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54281</wfw:commentRss><description>&lt;p&gt;Thanks for all the time and efforts, Anis.&lt;/p&gt;
&lt;p&gt;I have been able to change the form language to C#, and entered the code as u said.&lt;/p&gt;
&lt;p&gt;But clicking the button is not saving the file as intended.&lt;/p&gt;
&lt;p&gt;Template is attached.&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54264.aspx</link><pubDate>Wed, 28 Apr 2010 09:40:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54264</guid><dc:creator>Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54264.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54264</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54263.aspx</link><pubDate>Wed, 28 Apr 2010 09:27:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54263</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54263.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54263</wfw:commentRss><description>&lt;p&gt;check &lt;a href="http://msmvps.com/blogs/sundar_narasiman/archive/2008/05/20/how-to-install-vsta-visual-studio-tools-for-applications.aspx"&gt;this&lt;/a&gt; to check how you can install VSTA on your machine. VSTA is shipped with office installations.&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54222.aspx</link><pubDate>Tue, 27 Apr 2010 13:50:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54222</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54222.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54222</wfw:commentRss><description>&lt;p&gt;Hi Anis&lt;/p&gt;
&lt;p&gt;Its me again&lt;/p&gt;
&lt;p&gt;Cant enable C#&lt;/p&gt;
&lt;p&gt;dont have visual studio or vsta&lt;/p&gt;
&lt;p&gt;can u help me with a code in Jscript/ VB script&lt;/p&gt;
&lt;p&gt;Sorry, computer languages are just black alphabets for me&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54197.aspx</link><pubDate>Tue, 27 Apr 2010 09:21:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54197</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54197</wfw:commentRss><description>Thanks a lot</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54189.aspx</link><pubDate>Tue, 27 Apr 2010 07:46:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54189</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54189</wfw:commentRss><description>&lt;p&gt;Sorry for posting the attachments on two posts. i had initially forgot to post both the attachments and later i could find option to attach the second one also. &lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54185.aspx</link><pubDate>Tue, 27 Apr 2010 06:26:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54185</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54185.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54185</wfw:commentRss><description>&lt;p&gt;
attached is your template and code behind. you will need to specify the path of your new code. 
unzip g_v_.._fix.zip
save it to some location. 
then open the template  
go to tools -&amp;gt; form options -&amp;gt; browse and browse to the folder where you saved the unzipped attachment. and point to the sln file in there.
&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54184.aspx</link><pubDate>Tue, 27 Apr 2010 06:24:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54184</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54184.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54184</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt;Thanks a lot again
I&amp;#39;ll give it the shot and let u know the outcome.
u have been a great help</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54181.aspx</link><pubDate>Tue, 27 Apr 2010 06:06:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54181</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54181.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54181</wfw:commentRss><description>&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;the below code is in c#;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;if your&amp;nbsp;template doesnt have any other code, just remove the previous code (go to tools -&amp;gt; form options -&amp;gt; programming -&amp;gt; click remove code)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;after that change the&amp;nbsp;form template code language to c#;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;and insert the below code at proper places&lt;/font&gt;&amp;nbsp;&lt;/p&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; CTRL4_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="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//for printing the form. If you need two copies just write the statement once again&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;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Print();&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="#008080" size="2"&gt;&lt;font color="#008080" 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;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// saving to location in pdf format&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;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; autopsy_no = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:autopsy_no.&amp;quot;&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;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value;&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;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; save_location = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;C:\\new folder\\&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;+autopsy_no+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;.pdf&amp;quot;&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;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.CurrentView.Export(save_location, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ExportFormat&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Pdf);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54166.aspx</link><pubDate>Mon, 26 Apr 2010 14:52:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54166</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54166</wfw:commentRss><description>&lt;p&gt;the file is attached. did it the way i understood.&lt;/p&gt;
&lt;p&gt;tell me if some other way of attaching the file.&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54160.aspx</link><pubDate>Mon, 26 Apr 2010 13:12:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54160</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54160</wfw:commentRss><description>&lt;p&gt;can you attach the form template so that i can have a look at you, and tell you what eactly to do,&lt;/p&gt;</description></item><item><title>Re: submit button programming</title><link>https://www.infopathdev.com:443/forums/thread/54156.aspx</link><pubDate>Mon, 26 Apr 2010 13:00:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54156</guid><dc:creator>g_v_jain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54156.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54156</wfw:commentRss><description>&lt;p&gt;Thanks a lot Anis.&lt;/p&gt;
&lt;p&gt;I am a medico legal professional and am working on a template for autopsy report. So I am less than even a novice at this.&lt;/p&gt;
&lt;p&gt;So if u dont mind, just guide me where to insert the code that u have suggested. Below is the last line of the page I get when I click on the EDIT FORM CODE button of the properties of the custom button.&lt;/p&gt;
&lt;p&gt;_function CTRL345_5::OnClick(eventObj) { // Write your code here }_&lt;/p&gt;
&lt;p&gt;Also Cud u help me that how can I adjust the export code so that it names the file with the autopsy number as default.&lt;/p&gt;
&lt;p&gt;Thanks a lot again.&lt;/p&gt;</description></item></channel></rss>