Oracle Analytics Publisher

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

RTF Header using section break not showing as expected (Word / Template Builder)

Received Response
72
Views
8
Comments
Frank.Steinjan
Frank.Steinjan Rank 3 - Community Apprentice
edited Mar 7, 2025 11:04AM in Oracle Analytics Publisher

Hi,

I have recognized the following different output behavior between Word print output and the Word Addin BIP Template Builder.

What I tried to achieve is simple: Getting a different Header on the first page then on the other pages. Therefore I followed some instructions to achieve this in Word with the help of

1) a Section Break at the end of the first page.
2) The formatting the Header for page 1 (marking it as "Different First Page")
3) Formatting the Header of page 2 (removing the "Link to Previous")

In Word preview this looks good and works fine, from page 2 on we have a different header.

Now switching to BI Publisher Template Builder Addin and doing a PDF preview. This bring the following result:

Page 1 with the Page 1 header
Page 2 with the Page 1 header (not expected)
Page 3 with the Page 2 header (better: the header which should follow after page 1 onwards and was extra defined after the section break)

This is strange output isn't it?

Any ideas? (As said Word itself print previews it correctly … ) If someone wants the test RTF document, please let me know.

Tagged:

Answers

  • Kevin M-Oracle
    Kevin M-Oracle Rank 6 - Analytics Lead

    If you would like you can share your simple RTF and XML data, no PI or CI please.

    Or you can log an SR and provide those two files.

    Rgds.

    Kevin

  • Frank.Steinjan
    Frank.Steinjan Rank 3 - Community Apprentice

    @Kevin M-Oracle ,

    I can share the RTF. As it is just a mockup every XML will do it as there are no references in the document.

    Thanks.

  • Frank.Steinjan
    Frank.Steinjan Rank 3 - Community Apprentice

    Hi @Kevin M-Oracle,

    did you already had a chance to look at the rtf document?

    Or does it make sense to open an SR for it?

    Cheers,

    Frank

  • Kevin M-Oracle
    Kevin M-Oracle Rank 6 - Analytics Lead

    Hi Frank,

    I changed from section to page break.
    Used the layout dialog to set different first page and scope whole document.

    If worked as expected.

    Rgds,

    Kevin

  • Frank.Steinjan
    Frank.Steinjan Rank 3 - Community Apprentice
    edited Mar 13, 2025 8:11AM

    Thanks @Kevin M-Oracle ,

    I can confirm that your solution brings the result I expected with the section break solution.

    Anyway this works only in the scenario:

    first page different header
    rest of pages share same header

    which is good for probably 90% usecases :-)

    I did some further experiment with section breaks

    1. page = header A and portrait orientation → section break
    2. page = header B and portrait orientation → section break
    3. page = header C and landscape orientation → page break
    4. page = header C and landscape orientation

    While word is displaying all pages correctly, template builder pdf output shows samed header A for pages 1 to 3 and header C for page 4 after the page break. BUT template builder pdf shows the correct changing of the page orientation like word soes after the section breaks.

    So header (and footer as well) changes are first active after a real page break in template builder pdf output while other formattings like orientation seem to be applied correctly and as expected.

    So template builder has different logic (or is it a bug) regarding header / footer than for the other formattings regarding section breaks.

    I haven't checked yet the output when I run this template from BIP. Would be curious to see if there is different output than from the template builder. I add the result of this try asap.

    Cheers,

    Frank



  • Kevin M-Oracle
    Kevin M-Oracle Rank 6 - Analytics Lead

    Hi Frank,

    Most of the features in this section of the guide are not for RTF output, only PDF.

    Yes, you should test in Enterprise.

    Rgds,

    Kevin

  • Frank.Steinjan
    Frank.Steinjan Rank 3 - Community Apprentice

    @Kevin M-Oracle , oh I think you understood wrong. I'm only using RTF for the Template. The output will be always pdf (like also in our BIP jobs)…. But I will check it, how it behaves in Enterprise.

  • Frank.Steinjan
    Frank.Steinjan Rank 3 - Community Apprentice

    @Kevin M-Oracle , I tested it in Enterprise / BIP and the result is the same as for the Word Template Builder.

    The Section break does not trigger the Header / Footer to be changed like defined in the section. Only after a page break the right header / footer is applied.