<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/103948.aspx</link><pubDate>Mon, 14 Sep 2015 14:20:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103948</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=103948</wfw:commentRss><description>Here&amp;#39;s a link to Jimmy&amp;#39;s initial C# code from the beginning of the thread - hope this helps: http://www.infopathdev.com/blogs/jimmy/misc/SpellNum.txt</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/103939.aspx</link><pubDate>Mon, 14 Sep 2015 07:45:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103939</guid><dc:creator>bnvelarde</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103939.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=103939</wfw:commentRss><description>Hi miss Hilary,

Do still have the 2010 code?
Have a nice day! :)

Thanks and kind regards,
~Bern</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/82827.aspx</link><pubDate>Wed, 19 Sep 2012 12:38:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82827</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82827</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;chajang:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;May I ask some question about InfoPath 2010 with code-behind? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have develop InfoPath form using InfoPath 2010 with SharePoint 2010&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have run successfully this code from Sharepoint Onine (Office 365) site both in browser and filler (Sharepoint Server 2010 + Infopath 2010)&lt;br /&gt;In order to run in browser, it is necessary to comment a line of code with MessageBox, since MessageBox is not supported in browser forms.&lt;br /&gt;I did not read all thread but while Jimmy wrote to use &lt;a href="http://www.infopathdev.com/forums/p/9483/33547.aspx#33547"&gt;&lt;b&gt;Expression Box&lt;/b&gt; for spelledNumber&lt;/a&gt;, I&amp;#39;ve used a &lt;b&gt;text box&lt;/b&gt; instead. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;There is no need to attribute Full Trust and digitally sign this code (and hence administrator approval) for running published Web Browser Form template. &lt;br /&gt;It is necessary only for being able to run in preview (this Microsoft Infopath quirk which I do not completely understand). &lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;chajang:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I publish this form as Document Information Panel (DIP) content type on SharePoint&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Make sure &lt;a href="http://support.microsoft.com/kb/2717706"&gt;that&amp;nbsp; content type is not set as read-only upon publishing&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/81069.aspx</link><pubDate>Fri, 27 Jul 2012 07:54:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81069</guid><dc:creator>chajang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81069</wfw:commentRss><description>&lt;p&gt;Hi, all.&lt;/p&gt;&lt;p&gt;May I ask some question about InfoPath 2010 with code-behind? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have develop InfoPath form using InfoPath 2010 with SharePoint 2010.&lt;/p&gt;&lt;p&gt;I publish this form as Document Information Panel (DIP) content type on SharePoint and attached this SpellNum.cs to form&amp;#39;s code-behind.&lt;/p&gt;&lt;p&gt;Everything go fine when I preview this form within InfoPath on local. But when I publish this form to SharePoint with Full Trust/Create certificate, there is no luck.&lt;/p&gt;&lt;p&gt;After Microsoft word has launched, it&amp;#39;s seem code-behind does not fired to onchanged event when input number to number field in Document Property pane.&lt;/p&gt;&lt;p&gt;My question is: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Is this InfoPath form has deployed as sandboxed-solution?&lt;/li&gt;&lt;li&gt;Custom code-behind worked on form service, can it worked on DIP too?&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Anyway, form formula has work perfectly but not code-behind.&lt;/p&gt;&lt;p&gt;Thank you very much. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/80642.aspx</link><pubDate>Mon, 16 Jul 2012 19:53:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80642</guid><dc:creator>ziriax</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80642.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=80642</wfw:commentRss><description>&lt;p&gt;I found some code that I was able to make work.&amp;nbsp; Let me know if anyone would like me to post.&lt;/p&gt;&lt;p&gt;Julie :)&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/80585.aspx</link><pubDate>Fri, 13 Jul 2012 18:12:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80585</guid><dc:creator>ziriax</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=80585</wfw:commentRss><description>&lt;p&gt;Jimmy, I would like to use your C# code in my InfoPath 2010 form but I need help adding code to handle decimals.&amp;nbsp; I am building a form that our accounting department will need to print checks from and need to incorporate the cents, preferably in a XX/100 format.&amp;nbsp; The&amp;nbsp;provided code doesn&amp;#39;t handle decimals at all.&amp;nbsp; Your help is much appreciated.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Julie&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/73554.aspx</link><pubDate>Fri, 06 Jan 2012 07:58:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73554</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73554</wfw:commentRss><description>&lt;p&gt;Hello Jorge,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;That&amp;#39;s not much information to go on.&amp;nbsp; Could you try walking the code in the debugger to find at least which is the line where the error is occurring?&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/73542.aspx</link><pubDate>Thu, 05 Jan 2012 21:43:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73542</guid><dc:creator>Jorge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73542</wfw:commentRss><description>&lt;p&gt;Hello I Just did you steps but I have an Error Could be i am using Infopath 2010 I dont know i am new in this.&lt;/p&gt;
&lt;p&gt;This is the error&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;strong&gt;InvalidOperationException&lt;/strong&gt;&lt;/font&gt;&lt;/u&gt;&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/62299.aspx</link><pubDate>Tue, 14 Dec 2010 18:27:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62299</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62299.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62299</wfw:commentRss><description>&lt;p&gt;Yup, looks like the previous link fell victim to some tidying. I&amp;#39;ll update the original post, and here&amp;#39;s the new &lt;a href="http://www.infopathdev.com/files/folders/examples/entry41110.aspx" target="_blank"&gt;link&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/62298.aspx</link><pubDate>Tue, 14 Dec 2010 18:21:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62298</guid><dc:creator>doddwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62298.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62298</wfw:commentRss><description>&lt;p&gt;Hello Hilary.&amp;nbsp; Do you still have the 2003 example in your final post? There is a problem when I click the link.&amp;nbsp; Thanks, Simon&lt;/p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&lt;/em&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/48814.aspx</link><pubDate>Mon, 09 Nov 2009 15:52:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48814</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48814.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=48814</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, I figured it was due to some sort of rounding issue but just don&amp;#39;t know enough about code to be able to sort it out.&amp;nbsp; This seems to have fixed the problem.&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/48813.aspx</link><pubDate>Mon, 09 Nov 2009 15:37:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48813</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48813.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=48813</wfw:commentRss><description>&lt;p&gt;You&amp;#39;re certainly right.&amp;nbsp; This is due to small roundoff errors in floating point arithmetic causing 150.98 * 100 to produce 15097.9999999998 instead of 15098.&amp;nbsp; This should solve the problem:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Change&lt;/p&gt;&lt;blockquote&gt;&lt;pre&gt;var hundredths = parseInt((num * 100 - parseInt(num) * 100));&lt;br /&gt;        &lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;to&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;        var hundredths = Math.floor(num * 100 + 0.1) - Math.floor(num) * 100;
        &lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/48792.aspx</link><pubDate>Mon, 09 Nov 2009 10:46:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48792</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48792.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=48792</wfw:commentRss><description>&lt;p&gt;HI all, I&amp;#39;ve just encountered a small bug that&amp;#39;s occurring with this code.&amp;nbsp; When a user enters in a value for my:ChequeAmount, the text generated in the my:AmountWords field is sometimes off by a penny.&amp;nbsp; I&amp;#39;ve gone through and tested all denominations and it appears that&amp;nbsp;the pence (cents) are falling short on occurrences of .14, .17, .20, .23, .39, .42, .45, .48, .64, .67, .70, .73, .89, .92, .95 and .98.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So basically if a user inputs £150.98 into the my:ChequeAmount field, my:AmountWords is spelling out One Hundred&amp;nbsp;Fifty Pounds and Ninety-Seven Pence.&amp;nbsp; The really strange thing is that this doesn&amp;#39;t happen every single time but is always happening with my:ChequeAmount has a pence value equal to one of the above.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the code I&amp;#39;m using so if anyone has any thoughts on what could be causing this I&amp;#39;d be greatful for your input!&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/43003.aspx</link><pubDate>Tue, 16 Jun 2009 10:57:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43003</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43003.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43003</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey Ben,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Glad it worked out.&amp;nbsp; You can actually find out the namespace URN of any node (typically all the nodes in your main data source will have the same namespace), by opening the node&amp;#39;s properties in the Data Source taskpane, and looking at the Details tab.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I couldn&amp;#39;t come up with a great response to your other inquiry, but I did come up with a solution of sorts.&amp;nbsp; Please go have a look when you get the chance.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Spellnumber in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/42996.aspx</link><pubDate>Tue, 16 Jun 2009 08:37:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42996</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42996.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=42996</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, that worked like a charm!&amp;nbsp; I&amp;#39;d never have figured out that out but so I know for the future, am I right in thinking you determined the correct namespace by saving as source files and then opening the .xsd file in notepad?&amp;nbsp; It&amp;#39;s a great piece of code so it&amp;#39;s really helpful to understand how to move it into other forms.&lt;/p&gt;
&lt;p&gt;I was also wondering, with you and Hilary being the InfoPath geniuses you are, if you&amp;#39;d mind looking at another issue I&amp;#39;ve posted on here that has me stumped (it&amp;#39;s always the things that seem like they should be so simple that cause the most hassle in InfoPath!)?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/12086/42365.aspx#42365"&gt;http://www.infopathdev.com/forums/p/12086/42365.aspx#42365&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;</description></item></channel></rss>