Portlet Factory, Version 6.1.2


 

Print Page Contents builder

Use the Print Page Contents builder to specify an area of a page that you want to print when a button or link is clicked. The builder generates JavaScript and, optionally, a button, link, or image button to invoke the generated JavaScript.

This JavaScript is used to create a popup window that displays the page content to be printed. Once the content stream is sent to the printer, the popup window can be automatically closed.

This builder is useful when a portion of a browser page is to be printed rather than the entire page. This allows the content of a single application to be printed in a page that contains multiple applications.

Note: Ensure that this builder is not applied to the same tag on a page as the Excel Export builder. Both of these builders write the ID attribute to the tag, so that whichever builder is placed last overwrites the ID attribute provided by the former builder, making the former builder inoperable. If both builders are needed for the same area of the page, wrap one tag by another tag and apply the builders to the different tags.

The builder creates a JavaScript function on the specified page that in turn creates a popup window with the specified page contents and then print those page contents. It optionally generates a button, link or image button on the specified page, depending on the radio button selected.

 

How do I...

Select a portion of a page for printing?

Page on which the element to be printed is located in Source Page input. You will get the complete set of locations (tags) on the page in Source Element. Select the HTML or XML element to be printed in this input. The contents of the page within the selected HTML or XML element are written to the browser popup window from which the print operation is executed.

Locate a print control on a page?

Location of the print button, link, or image by the Print Button/Link Location builder input. When the application is displayed, the print control is located on the tag that you selected.

Parent topic: Builder help


Library | Support |