Design a view that is optimized for printing InfoPath 2007
Author: mety Labels:: Design a view that is optimized for printing InfoPath 2007The difference between printing a form template and a formYou can print your form template to get a general sense of how controls and other objects appear on the printed page, or to verify print settings, such as headers or footers. When you print a form template from design mode (design mode: The InfoPath design environment in which you can create or modify a form template.), you may see certain items on the printed form template, such as buttons, that don't actually appear when a user prints a form based on your form template.When users print a form based on your form template, InfoPath makes adjustments to the form or removes certain items that don't make sense in a printed context. For example, the Insert Item instructional text that appears by default under repeating tables won't appear in the printed form. Neither will button controls, list box entries, or scroll arrows, as these items lose their meaning on the printed page. Introduction to print viewsAlthough form templates are designed to collect form data in an electronic format, you can create a print view, which is a view that is designed specifically for printing. This is useful when you want users to print out forms using a particular layout or to only print out certain parts of the form.If your form template contains multiple views, you can create a print view for each view. Alternatively, you can designate a single print view that applies to all views in the form template. For example, if your form template contains three distinct views, you might create a print view that consolidates key information from each of those views into a single printed page. To create and associate a print view with an existing view, you can use the Create Print Version for This View link in the Views task pane. When you click this link, InfoPath does the following:
After creating a print view, you can design it to reflect the way that you want the form to appear when printed. This typically involves copying and pasting controls from other views in the form template into the print view. If necessary, you can substitute certain controls for other controls in the print view. For example, you might replace a drop-down list box, which hides list box entries by default, with a standard list box, which displays the entries by default. By doing this, all of the entries are displayed on the printed form. You can also specify custom printing options for the print view in the View Properties dialog box, such as headers, footers, and page margins. Design a print view that is based on an existing viewBy default, when a user prints a form that does not have a specific print view associated with it, the view that is currently displayed on the user's computer is printed. If you create a print view, InfoPath prints that view instead of the current view. You can designate any existing view as the print view. The following procedure explains how to use an existing view as the basis for a print view.
Design a print view specifically for WordIf you're an advanced form designer who understands XML (Extensible Markup Language (XML): Industry-standard language for describing, organizing, and exchanging data. In InfoPath, form templates are based on XML technologies, and form data is saved or submitted in XML format.) technologies, you can use the Add Print View for Word Wizard to create a Microsoft Office Word-based print view that prints form data directly from Word. This allows you to take advantage of the range of printing features that are available in Word. To do this, you must have access to an existing XSL Transformation (XSLT) (XSL Transformation (XSLT): A language that is used to transform XML documents into other types of documents, such as HTML or XML. It is designed for use as part of XSL.) file that transforms data in your form template into a format that is suitable for printing from Word. When a user prints a form that contains a Word-based print view, data in that form will print directly from within Word. The XSLT file must be created using Microsoft Office Word 2003 or Microsoft Office Word 2007.Note To learn more about creating the XSLT file, refer to the Microsoft Office InfoPath 2003 Software Development Kit (SDK). The SDK contains a tool, called the InfoPath to Word Wizard, that allows you to use Word 2003 or Word 2007 to print InfoPath form data. To locate the InfoPath 2003 SDK, refer to the See Also section.
|