title: window.print() problems in Dynamics CRM 2011 forms
body: <p>We've been implementing a Dynamics CRM 2011 solution where one of the requirements was to print out a bespoke-styled form containing sub-grids and charts. The short story is that clicking on a &quot;print&quot; link (which calls the <code>window.print()</code> method) throws up a series of JavaScript errors. These, however, are non-fatal and clicking through each will allow the form to be printed OK.</p>
  <blockquote>
  <p>Line: 73 <br>
  Char: 24234 <br>
  Error: The value of the property 'isNull' is null or undefined, not a Function object.<br>
  URL: https:://aks7.crm4.dynamics.com/_static/_forms/controls/img.lu.htc?ver=-115872263</p>
  <p>(note that the double colon above was intentional!)</p>
  </blockquote>
  <p>One of our early thoughts was that the problem was down to unsupported customisations, so as a test I created a new entity with a basic form. On the ribbon I added a print button which calls the <code>window.print()</code> method. The result is exactly the same. I've also replicated the issue on CRM Online.</p>
  <p>The upshot is that either using <code>window.print()</code> is unsupported, or we've found a bug or both. Is there a solution to this?</p>