cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify PDF print template in Portal..

Former Member
0 Kudos

Hi,

we are running BI and Portal (NW 7.0, SP14).

In the portal we enables the BI queries printing in PDF, but as far we use standard web template.

Now i copied the web template and want to add new Fields to the PDF document, such as like Query Name, User, System and customer Logo.

I was able to add web text items with the required field to the customer web template, but i was not able to see these fields when printing the document...

Please provide me with step for step describtion on how to add new fields to the PDF export or how should i proceed...??

Many Thanks,

Nazih

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I am assuming you have a button or something similar on your template that allows the user to generate the PDF output. In the command for generating the PDF, you can specify which components on the template are to be included in the PDF.

Here is the XHTML behind an image hyperlinke that I have in our template:


<bi:EXPORT >
    <bi:ITEM_REF_LIST type="UNORDEREDLIST" >
        <bi:ITEM_REF index="1" value="EXCEPTIONS" />
        <bi:ITEM_REF index="2" value="CONDITIONS" />
        <bi:ITEM_REF index="3" value="INFO_FIELD_ITEM_1" />
        <bi:ITEM_REF index="4" value="DATA_DISPLAY" />
        <bi:ITEM_REF index="5" value="ANALYSIS" />
        <bi:ITEM_REF index="8" value="QUERY_TITLE" />
        <bi:ITEM_REF index="9" value="ACTUAL_DATE" />
        <bi:ITEM_REF index="10" value="CHART" />
        <bi:ITEM_REF index="14" value="TEMPLATE_CODE" />
    </bi:ITEM_REF_LIST>
    <bi:FOOTER_RIGHT value="PAGEOFPAGES" />
    <bi:PAPER_ORIENTATION value="LANDSCAPE" />
    <bi:SHOW_EXPORT_DIALOG value="X" />
    <bi:FOOTER_LEFT value="DATETIME" />
    <bi:LAYOUT_STRATEGY value="WALLPAPER" />
    <bi:PAPER_SIZE value="DINA4" />
    <bi:REPEAT_KEYCOL value="X" />
</bi:EXPORT>

The order that items are included in the PDF is based on the order they are included in the web template. Changing the order in teh ITEM_REF list above does not change the order in the PDF.

Hope this helps.

Cheers,

Andrew

Former Member
0 Kudos

Hello Lewis,

Thanks.

Yes i have the standard button "Print" for printing PDF-Query.

Please describe (when possible step by step) wher and how to add these customer fields to the PDF printing in the web template, i me using WAD 7.0 ..

Many Thanks,

Nazih

Former Member
0 Kudos

1. Open the Web Application Designer

2. Open your template

3. Click on the button to edit your PDF button command

4. Under the Data Binding section choose an item from the dropdown

5. Add all the required items by selecting from the dropdown

This should do the trick

Cheers,

Andrew

Former Member
0 Kudos

Hello,

many thanks for your help.

1. I have added to the web template three new "TEXT_ITEM" elements with Date, QueryName, etc.

2. then i have added this "text web items" to the PDF-pring command -> Data binding as you have advices.

Here is the Result of the XHTML File:

<bi:EXPORT xmlns:bi="http://xml.sap.com/2005/01/bi/wad/bisp">

<bi:TEMPLATE value="Z_0ANALYSIS_PATTERN">

</bi:TEMPLATE>

<bi:ITEM_REF_LIST type="UNORDEREDLIST">

<bi:ITEM_REF index="2" value="TEXT_ITEM_1">

</bi:ITEM_REF>

<bi:ITEM_REF index="3" value="TEXT_ITEM_2">

</bi:ITEM_REF>

<bi:ITEM_REF index="4" value="TEXT_ITEM_3">

</bi:ITEM_REF>

</bi:ITEM_REF_LIST>

<bi:REPEAT_HEADER value="">

</bi:REPEAT_HEADER>

<bi:SHOW_EXPORT_DIALOG value="X">

</bi:SHOW_EXPORT_DIALOG>

<bi:REPEAT_KEYCOL value="">

</bi:REPEAT_KEYCOL>

</bi:EXPORT>

- Now the Issue is i cannot see these web items in my PDF document when i export the query as PDF...??? the PDF-document is empty...??

*- and Any Idea how can i add an Image-object (Logo) to the PDF document too..??*

Many Thanks again,

Nazih

Edited by: Nazih Kayyali on Nov 20, 2008 4:17 AM

Answers (0)