<?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: Print Code has stopped working - Value does not fall within the expected range.</title><link>https://www.infopathdev.com:443/forums/thread/95367.aspx</link><pubDate>Wed, 22 Jan 2014 10:57:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95367</guid><dc:creator>Dragonranger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95367.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95367</wfw:commentRss><description>&lt;p&gt;Just in case anyone is reading this and still can&amp;#39;t find a solution....&lt;/p&gt;&lt;p&gt;I had the exact same error and it was caused by the footer using a&amp;nbsp;specific locale in date formatting instead of the localised date. &amp;nbsp;&lt;/p&gt;&lt;p&gt;Now&amp;nbsp; I&amp;#39;m not suggesting this is your issue but the&amp;nbsp;way I diagnosed this issue was by trying the Print command from the menu and noting that it threw an exception here as well.&lt;/p&gt;&lt;p&gt;What I&amp;nbsp;&lt;em&gt;am&lt;/em&gt; saying&amp;nbsp;is that this very strange error is more than likely caused by an error in the view as Greg suggested. But it is not necessarily limited to the contents but also, headers/footers or other view/print settings.&lt;/p&gt;&lt;p&gt;Hope that this can help someone in future.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Print Code has stopped working - Value does not fall within the expected range.</title><link>https://www.infopathdev.com:443/forums/thread/51777.aspx</link><pubDate>Mon, 15 Feb 2010 19:38:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51777</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51777</wfw:commentRss><description>&lt;p&gt;Attach your stripped-down form here and we can look at it.&lt;/p&gt;</description></item><item><title>Re: Print Code has stopped working - Value does not fall within the expected range.</title><link>https://www.infopathdev.com:443/forums/thread/51736.aspx</link><pubDate>Fri, 12 Feb 2010 19:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51736</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51736.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51736</wfw:commentRss><description>&lt;p&gt;Hi I have now taken everything off the view - other than the button.&amp;nbsp; There is only one view in the form.&amp;nbsp; I still get the error.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know where to go from here.&amp;nbsp; Where are the big guns ?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: Print Code has stopped working - Value does not fall within the expected range.</title><link>https://www.infopathdev.com:443/forums/thread/51731.aspx</link><pubDate>Fri, 12 Feb 2010 18:34:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51731</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51731.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51731</wfw:commentRss><description>&lt;p&gt;Not that I am aware of. But sometimes when a form gets to be complex, as you described yours to be, strange things can start to occur. It takes some investigation and understanding of how InfoPath works in the background. The first thing is to narrow it down--identify the exact source of the problem. Then, if after playing with it a while, you can&amp;#39;t figure out how to fix it yourself, it&amp;#39;s time to pull in the big guns. If they can&amp;#39;t fix it, it could be a legitimate bug that Microsoft would need to address.&lt;/p&gt;</description></item><item><title>Re: Print Code has stopped working - Value does not fall within the expected range.</title><link>https://www.infopathdev.com:443/forums/thread/51721.aspx</link><pubDate>Fri, 12 Feb 2010 16:40:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51721</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51721</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for the reply.&amp;nbsp; I have already tried the First thing to try, and I still get a failure.&amp;nbsp; I will try #2.&amp;nbsp; Is there anything that is particularly vulnerable to this error ?&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: Print Code has stopped working - Value does not fall within the expected range.</title><link>https://www.infopathdev.com:443/forums/thread/51714.aspx</link><pubDate>Fri, 12 Feb 2010 16:27:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51714</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51714</wfw:commentRss><description>&lt;p&gt;If this code works in other forms, then it is probably an issue with the view. Try this:&lt;/p&gt;
&lt;p&gt;First thing to try:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Since this is the only code in the form, go into Tools | Form Options | Programming and click the Remove Code button.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Now add your Clicked event from the print button again.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add the code back in and preview.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Second thing to try:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Make a copy of your solution (so as not to destroy your original).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Remove some items from the view, preview, and try printing.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Keep doing #2 above until you find the problem spot--and then try to identify what in that spot might be causing the trouble&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If you remove all items from the view and continue to get the issue, try the same thing on each other view.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If all views are now blank and you still get the issue, then there&amp;#39;s something wrong with the form template internals.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Print Code has stopped working - Value does not fall within the expected range.</title><link>https://www.infopathdev.com:443/forums/thread/51646.aspx</link><pubDate>Wed, 10 Feb 2010 18:38:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51646</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51646.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51646</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have a 2007 form which has been working.&amp;nbsp; It is quite a complex form with&amp;nbsp;lots of fields and&amp;nbsp;conditional formatting.&amp;nbsp; Almost all of the features have been achieved using&amp;nbsp;rules.&amp;nbsp;&amp;nbsp; There is one button on the form which calls code. The code is in VB.&amp;nbsp;This is the only&amp;nbsp;routine in the form.&lt;/p&gt;&lt;font size="2"&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;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; PRINTFORM_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&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;Print(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;True&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;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="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;The code compiles with no errors. This button has been working correctly.&amp;nbsp; But now it does not work, I get exception errors.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;System.ArgumentException&lt;br /&gt;&lt;/font&gt;&lt;font face="Calibri" size="3"&gt;Value does not fall within the expected range.&lt;br /&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.ICLRExtensions.PrintWithDialog()&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.ICLRExtensionsWrapper.PrintWithDialog()&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Microsoft.Office.InfoPath.Internal.XmlFormHost.Print(Boolean showPrintDialog)&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Microsoft.Office.InfoPath.XmlFormHostItem.Print(Boolean showPrintDialog)&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at JSAWPv01._02.FormCode.PRINTFORM_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;I have deleted the code and re written the line and I get the same error.&amp;nbsp; I have created a brand new empty form and put one button on with the same code and it works fine.&amp;nbsp; (I have other forms where this same print button works ok).&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;What is this error trying to tell me ?&amp;nbsp; Where should I be looking ?&amp;nbsp; Any help would be VERY welcome.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;Thank you&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;Catharine&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>