Print Preview in Microsoft Dynamics CRM 2011

One of the Update Rollups for Microsoft Dynamics CRM 2011 stopped multiple line of text fields showing the entire contents when printing. Instead the field is shown as a fixed height window with a scrollbar; which is not particularly helpful when printed.

One trick I discovered is to add a web resource to the form for the relevant entity that adds some JavaScript to modify the properties of the field. So that the web resource does not show on the form, ensure that Visible by default is not selected.

The required JavaScript is show below, you must replace ‘new_note_d’ with the name of the field on you form; make sure that you add “_d” to the end of the field name.

Although this might work it is probably unsupported, because modifying the form appearance in this way is not documented in the SDK.

<script type="text/javascript">

if (top.location.href.indexOf("/print/print.aspx") != -1)

var description=top.frames[0].document.getElementById('new_note_d'); = "auto";


<meta charset="utf-8">
<font face="Tahoma, Verdana, Arial" size="2"></font>

Leave a Comment

Your email address will not be published. Required fields are marked *