Add Logo for PO Output for Communication report

on Thursday, September 23, 2010

Login as a user with the XML Publisher Administrator responsibility and then navigate to the Home: Templates page.

From the XML Publisher Templage page, query for 'PO_STANDARD_XSLFO' code and click on the 'Standard Purchase Order Stylesheet' in the Create Template section.

On the View Template page Scroll down to the Add File section and click the Download link. This will pop save/Open option for the 'PO_STANDARD_XSLFO.xsl' spreadsheet. Save the file to your local disk.

Scroll up again to the General section and click the Update button.

Apply the end date with history date. Preferably the end date should be (SYSDATE-1) and click Apply button. This will end date the standard template.

Locate the 'PO_STANDARD_XSLFO.xsl' on your local drive. Open the file in Wordpad and press ctl+f to find the 'Logo' string in the file. Uncomment the and strings. This code is used to display the image at top left corner in the first page. The complete block after changes should read as below:


Save the file and make sure that you have taken appropiate backup of the XSL spreadsheet before doing any updates.

Navigate to XML Publisher Template page again. Click the Create Template button link and enter data per the following steps:

1. Enter a unique name in the Name field -- Custom Purchase Order Stylesheet
2. Enter unique code in the Code field -- PO_STANDARD_XSLFO1
3. Enter Purchasing in the Application field
4. Select XSL-FO from the Type drop-down list box
5. Enter Standard Purchase Order Data Source in the Data Definitionbox -- Standard Purchase Order Data Source
6. Click Browse button and navigate to the edited PO_STANDARD_XSLFO.xsl file where it is located on your computer
7. Enter English in the Language box
8. Click Apply button

Login with Purchasing Super User responsibility and then navigate to Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF'

Navigate to setup / purchasing / document types / select "Standard Purchase Order" / Set the Document Type Layout to your new template. 

No comments: