Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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

↑ Back to the top


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.
  5. Under Select a view, click the original view. This might appear as View 1 (default).
  6. Press CTRL+A to select all the controls on the view, and then press CTRL+C to copy the controls.
  7. Under Select a view, click the new print version that you created in step 4, and then press CTRL+V to paste the controls.
  8. 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.

↑ Back to the top


More Information

Steps to reproduce the behavior

  1. Create a new InfoPath form.
  2. On the Task Pane, click Views. The Views task pane appears.
  3. Click the View Properties button. The View Properties dialog box opens.
  4. On the General tab, under Layout Settings, select the Use a custom layout width for this form check box.
  5. In the Custom layout width box, type 750, and then click OK.
  6. In the Task Pane, click Layout, and then click Table With Title to insert a table on the form.
  7. In the form, click the following text: Click to add form content.
  8. On the Task Pane, click Controls.
  9. Under Insert controls, click the Text Box control to add a text box to the table.
  10. Click the Preview Form button. The form might take a moment to open.
  11. 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.
  12. 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.

↑ Back to the top


Keywords: kbentirenet, kboffice12yes, kbfreshness2006, kbprb, kb

↑ Back to the top

Article Info
Article ID : 835472
Revision : 1
Created on : 1/7/2017
Published on : 9/22/2011
Exists online : False
Views : 261