Microsoft KB Archive/835472

= Some of the text at the right margin of an InfoPath form does not print or does not appear in Print Preview =

Article ID: 835472

Article Last Modified on 4/12/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007
 * Microsoft Office InfoPath 2003

-



SYMPTOMS
When you try to print or preview a Microsoft Office InfoPath 2003 or a Microsoft Office InfoPath 2003 form, a problem may occur. Some of the text at the right margin does not print or does not appear in Print Preview. The right margin of the page does not appear as expected.



CAUSE
When the size of either the form or the controls is wider than the printable area of the page, the right margin of the form controls and the text in those controls may not print or may not appear in Print Preview.

This problem occurs because InfoPath uses the same HTML engine as Microsoft Internet Explorer to render and to print HTML. Therefore, when you display and print InfoPath forms, you see the same behavior and limitations with the HTML engine in Internet Explorer.

For additional information about the print and print preview behavior with Internet Explorer, click the following article number to view the article in the Microsoft Knowledge Base:

260642 Frame or table text is cut off at the right margin when printing Web pages



WORKAROUND
To work around this problem, use one of the following methods:
 * Method 1: Modify the view to print in the landscape orientation
 * Method 2: Resize the controls and the view to fit in the printable area
 * Method 3: Turn on the Wrap text property
 * Method 4: Create a custom print version

Method 1: Modify the view to print in the landscape orientation
To change the orientation, follow these steps:
 * 1) Show the Task Pane in Design view. To do so, click Task Pane on the View menu. (The View menu is on the Menu Bar.)
 * 2) On the Task Pane, click Views, and then click the View Properties button. The View Properties dialog box opens.
 * 3) On the Print Settings tab, select the Landscape option under Orientation, and then click OK.

Note Depending on the amount of text, you may also have to resize the controls vertically to display all the text.

Method 2: Resize the controls and the view to fit in the printable area

 * 1) Show the Task Pane in Design view. To do so, click Task Pane on the View menu. (The View menu is on the Menu Bar.)
 * 2) On the Task Pane, click Views, and then click the View Properties button. The View Properties dialog box opens.
 * 3) Under Layout settings, select the Use a custom layout width for this form check box.
 * 4) In the Custom layout width box, type 650 or less. Leave the default unit of measure as px.
 * 5) Resize all controls to have a width of 650 px or smaller.

Note Depending on the amount of text, you may also have to resize the controls vertically to display all the text.

Method 3: Turn on the Wrap text property
Note The Wrap text property is available only for the Text Box control, the Rich Text Box control, and the Expression Box control.
 * 1) While in Design view, right-click the control that you want to modify, and then click Text Box Properties.
 * 2) On the Display tab, select the Wrap text check box, and then click OK.
 * 3) Resize the view and the controls to fit in the printable area.

Method 4: Create a custom print version

 * 1) Show the Task Pane in Design view. To do so, click Task Pane on the View menu. (The View menu is on the Menu Bar.)
 * 2) Click Views on the Task Pane. The Views task pane appears.
 * 3) Under Actions, click Create Print Version for This View. The Create Print Version dialog box opens.
 * 4) Type a name for your print view, and then click OK.

The next 3 steps will copy and paste controls from the original print version to your new print version for this view.
 * 1) Under Select a view, click the original view. This might appear as View 1 (default).
 * 2) Press CTRL+A to select all the controls on the view, and then press CTRL+C to copy the controls.
 * 3) Under Select a view, click the new print version that you created in step 4, and then press CTRL+V to paste the controls.
 * 4) Resize the view or the controls (or both).

Alternatively, select or clear the Wrap text check box of the controls so that the text is displayed correctly.



Steps to reproduce the behavior
 Create a new InfoPath form. On the Task Pane, click Views. The Views task pane appears. Click the View Properties button. The View Properties dialog box opens. On the General tab, under Layout Settings, select the Use a custom layout width for this form check box. In the Custom layout width box, type 750, and then click OK. In the Task Pane, click Layout, and then click Table With Title to insert a table on the form.</li> In the form, click the following text: Click to add form content.</li> On the Task Pane, click Controls.</li> Under Insert controls, click the Text Box control to add a text box to the table.</li> Click the Preview Form button. The form might take a moment to open.</li> In the text box, paste the following sample text:

This sample text is intended to reproduce the problem. The right margin of the page does not appear as expected. This sample text is intended to reproduce the problem. The right margin of the page does not appear as expected. This sample text is intended to reproduce the problem. The right margin of the page does not appear as expected.

</li> Preview the result. To do so, click either Print or Print Preview on the File menu.

The right margin of the print preview or of the printed page does not appear as expected.</li></ol>

Additional query words: kbnoOfficeAlertID infopath2003 infopath2007

Keywords: kbprb KB835472

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.