<?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: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/81762.aspx</link><pubDate>Fri, 17 Aug 2012 16:57:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81762</guid><dc:creator>alexj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=81762</wfw:commentRss><description>&lt;p&gt;This is awesome, I so want to be able to do this on my form! (The form requires that a supervisor, service chief, and senior executive sign it in sequence.&amp;nbsp; The service chief and senior executive both need to be able to send back the form and remove the prior digital signatures to start it all over)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could anyone give me this in VBA please?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also, how do I find &amp;#39;bname&amp;#39; for the code from my form?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Since this is creating a function, I need to create a button which should call the function and pass bname to it?&lt;/p&gt;</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/27206.aspx</link><pubDate>Thu, 13 Mar 2008 22:44:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27206</guid><dc:creator>KoopLaFez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27206.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27206</wfw:commentRss><description>&lt;p&gt;I know this is an old thread, but if anyone&amp;#39;s interested, I got this code to work in JScript (Where bName is a string containing&amp;nbsp;the name of the data block that contains the signature you want to delete):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;function removeSignature(bName){&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oSignaturesCollection = XDocument.SignedDataBlocks[bName].Signatures;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var iCountOfSignatures = oSignaturesCollection.Count;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(iCountOfSignatures &amp;lt;= 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var oSignatureNode = oSignaturesCollection(0).SignatureBlockXmlNode;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(null == oSignatureNode)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oSignatureNode.parentNode.removeChild(oSignatureNode);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The only hitch is that when you delete the signature block, the little &amp;quot;Click here to sign&amp;quot; text doesn&amp;#39;t reappear until you reopen the form.&amp;nbsp; For my purposes this is fine becuase I&amp;#39;m clearing the signature before I submit the form to someone else via email, but if someone needed to clear the signature field, then have someone sign that field, this could be a problem.&lt;/p&gt;</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14811.aspx</link><pubDate>Mon, 23 Oct 2006 20:49:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14811</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14811.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14811</wfw:commentRss><description>try with&lt;br /&gt;var oSignatureNode = oSignedDataBlock.Signatures(0).SignatureBlockXmlNode;&lt;br /&gt;or &lt;br /&gt;var oSignatureNode = oSignedDataBlock.Signatures[0].SignatureBlockXmlNode;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14810.aspx</link><pubDate>Tue, 17 Oct 2006 09:01:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14810</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14810.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14810</wfw:commentRss><description>Hi, &lt;br /&gt;Can anybody help me to give me the code above in JScript.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;Philippe</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14809.aspx</link><pubDate>Fri, 13 Oct 2006 11:22:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14809</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14809</wfw:commentRss><description>Hi Agni,&lt;br /&gt;Thanks for your help. I just have a question: Can you give me the sample code in JScript? &lt;br /&gt;I have just a problem with the line:&lt;br /&gt;&lt;br /&gt;IXMLDOMNode oSignatureNode = oSignedDataBlock.Signatures[0].SignatureBlockXmlNode;&lt;br /&gt;&lt;br /&gt;Regards.&lt;br /&gt;Philippe</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14808.aspx</link><pubDate>Fri, 13 Oct 2006 03:48:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14808</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14808</wfw:commentRss><description>Hi Zaphi, &lt;br /&gt;Here is the code that removes the signatures. Please let me know if you have any queries on this&lt;br /&gt;&lt;br /&gt;SignaturesCollection oSignaturesCollection = thisXDocument.SignedDataBlocks["Actions"];&lt;br /&gt;int iCountOfSignatures = oSignaturesCollection.Count;&lt;br /&gt;if(iCountOfSignatures &amp;lt;= 0)&lt;br /&gt;{&lt;br /&gt;	return;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;IXMLDOMNode oSignatureNode = oSignedDataBlock.Signatures[0].SignatureBlockXmlNode;&lt;br /&gt;if(null == oSignatureNode)&lt;br /&gt;{&lt;br /&gt;	return;&lt;br /&gt;}&lt;br /&gt;oSignatureNode.parentNode.removeChild(oSignatureNode);</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14807.aspx</link><pubDate>Thu, 12 Oct 2006 21:21:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14807</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14807.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14807</wfw:commentRss><description>Hi Zaphi, &lt;br /&gt;Thanks for replying again. Sorry for the delay here. We can definitely provide some code snippets. I'll ask someone on our team to do this over the weekend.</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14806.aspx</link><pubDate>Thu, 12 Oct 2006 09:28:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14806</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14806.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14806</wfw:commentRss><description>As I haven't become any other answer, I have decided to put a button, which opens the Digital Signatures Wizard and the user has to remove the signatures himself manually.</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14805.aspx</link><pubDate>Tue, 26 Sep 2006 06:54:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14805</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14805</wfw:commentRss><description>Hello Karsten,&lt;br /&gt;I'm afraid the links you've mentionned above don't talk about removing signatures by code, but removing in the signature dialog box. &lt;br /&gt;I have allready spent a lot of time to search in internet. What I need is a method such as "XDocument.SignedDataBlocks(i).Signatures.Delete() .But these seems not to exist. I would be very interested, how the button "Remove" in the dialog box works.&lt;br /&gt;&lt;br /&gt;I hope anybody can help me.&lt;br /&gt;regards.&lt;br /&gt;Philippe</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14804.aspx</link><pubDate>Mon, 25 Sep 2006 23:31:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14804</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14804.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14804</wfw:commentRss><description>We have sent out a handful of "prizes" - Matt Faus, Abhishek, Thierry, VT_Asparagus, Anders, ... We have two prizes - one is a solar charger for your cell phone. It's pretty cool. Another prize is a bottle of wine from the famous Washington State producer (Quilceda Creek). We also will promote you to a moderator of the forum where you provide assistance.</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14803.aspx</link><pubDate>Mon, 25 Sep 2006 22:51:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14803</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14803</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;&lt;br /&gt;... I´m just wonder how many prices have you got in the past but even so that I´m just at the beginning --- I´ll do my very best to score 100 ... ;-))&lt;br /&gt;&lt;br /&gt;Maybe it could be a nice christmas gift ;-))&lt;br /&gt;&lt;br /&gt;Thanks for the flowers</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14802.aspx</link><pubDate>Mon, 25 Sep 2006 17:41:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14802</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14802.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14802</wfw:commentRss><description>Thanks Karsten for the help in the forum!&lt;br /&gt;We have a special prize for posters who reach 100 helpful posts. :)</description></item><item><title>Re: Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/14801.aspx</link><pubDate>Mon, 25 Sep 2006 16:58:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14801</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14801</wfw:commentRss><description>Hello Philippe,&lt;br /&gt;&lt;br /&gt;I know that there is a collection in the XDocument object called 'SignedDataBlocks'. Hopefully you can use this collection to remove one or more signatures by code.&lt;br /&gt;For more information regarding this issue, please have a look here:&lt;br /&gt;&lt;br /&gt;&lt;a href='http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_10.asp' target='_blank' title='http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_10.asp'&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_10.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_10.asp&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Maybe another source of interest could be the following...&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.readol.net/books818/computer/Windows/Introducing.Microsoft.Office.InfoPath.2003/index.left.htm' target='_blank' title='http://www.readol.net/books818/computer/Windows/Introducing.Microsoft.Office.InfoPath.2003/index.left.htm'&lt;a target="_blank" href=http://www.readol.net/books818/computer/Windows/Introducing.Microsoft.Office.InfoPath.2003/index.left.htm&gt;http://www.readol.net/books818/computer/Windows/Introducing.Microsoft.Office.InfoPath.2003/index.left.htm&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;HTH,</description></item><item><title>Method to remove signature</title><link>https://www.infopathdev.com:443/forums/thread/12951.aspx</link><pubDate>Mon, 25 Sep 2006 14:41:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12951</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12951.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12951</wfw:commentRss><description>Hi&lt;br /&gt;Does anybody know how to remove signatures by code (which method).&lt;br /&gt;Thanks.&lt;br /&gt;Philippe</description></item></channel></rss>