Microsoft Word template provides the ability for Text (.txt) files to be printed. When selecting Print, the existing routine that prints Word documents is used to print the text file. After the print job has finished, the file is closed without saving, preserving the template for the next text file. Text file printouts will have a consistent look and feel when shown in PDF preview.
The Word template, FR_TextTEmplate.doc, is located in the Financial Reporting print server in the ${home.reports}/bin/ folder. The template contains some pre-formatted content which can be customized.
By default, the Word template has the following settings:
The “<<FR_content>>” string is the only content in the body of the document.
The text is formatted to Courier New, 10pt font.
Print option is Portrait with 1 inch margins.
The footer is set to “print date and time” and current page number. These settings are updated and shown in all text files printed through the Financial Reporting print server.
Elements of the template that you can customize:
You can customize the default formatting such as font, tabs, margins.
You can control the page setup of the template. For example, always print in landscape mode or set the paper size to A4.
You can customize the headers and footers. For example, show the page numbers in the footer, which is automatically updated when generating for PDF preview in books and reports.
You can customize the pre-existing content of the template. For example, insert a standard confidentiality clause at the end of every printout (see Customizing the Template).
You can add images or backgrounds to the template. For example, a company logo.
To protect against the Word document becoming corrupt, make a backup before customizing the template. The template can be opened through Microsoft Word. Any saved changes are applied the next time a text file is printed by the Financial Reporting server. When a text file is selected to print, the Financial Reporting print server opens the FR_TextTemplate.doc file and looks for the string, <<FR_content>>. If found, the context of the text file is inserted in that location, replacing the string. If the string is not found, the contents of the text file is inserted at the end of the Word document. If there is pre-existing content in the template, it is shown before the data in the text file.
We recommend that you always include the <<FR_content>> string in the template. This allows you to control the font and paragraph settings of the content in the inserted text file. The content inherits the formatting that is currently in the <<FR_content>> string.
Note: | You do not need to restart the Financial Reporting print server when a change is made. |
To Customize the template:
Select File, and then Open and navigate to the FR_TextTemplate.doc document located in the (default) ${home.reports}/bin/ folder, and click Open
To change formatting, highlight <<FR_content>> and make your formatting changes.
Note: | If you save the template to a different location than the default location, you must indicate the new location for TextPrintTemplate in the JConsole.exe file. For information on JConsole, see the “Property Information” topic in the Oracle Hyperion Financial Reporting Workspace Administrator's Guide. |