Profile picture for user Nique

Hi,

I'm on a process booklet in PDF. I have a Cover-Page, a TOC-Page and also the Content-Pages.

For every Section, I call the same function to build the header and footer like this:

Cover-Page:

    p_Output.BeginSection(true, Constants.SECTION_COVER);
    setReport_Header_Footer(p_Output,p_Model.Name(nLocale));

TOC-Page:

    p_Output.BeginSection(true, Constants.SECTION_INDEX);
    setReport_Header_Footer(p_Output,p_Model.Name(nLocale));

Content-Page:

    p_Output.BeginSection(true,Constants.SECTION_DEFAULT );
    setReport_Header_Footer(p_Output,p_Model.Name(nLocale));

But the Output has two Problems:

1. All pages have lines in the Table of Header and Footer, exept the TOC page. There are no Borders. Why?

2. Cover- and TOC-Page are showing page 1 from 1 when I use "Constants.FIELD_PAGE" and "Constants.FIELD_NUMPAGES" only the Content-Section works nearly fine. The Section begins to count from 1. In the help --> Method "BeginSection", I found the Note "In Pdf the SECTION_COVER and the SECTION_INDEX creates respectively a new Document". Is this the Problem? Any Workarounds? How can I read the Section-Name later to remove page-number on the Cover- and TOC-Section?

 

Regards,

Dominik

by ephem ya
Posted on Fri, 11/09/2012 - 10:15

Hi,

You have to make the Header and the Footer just once, in my script I make :

Header( Mod );
Footer();
CoverPage( Mod );

After, I create the TOC section and the default section.

If you want the header and footer in your section( or not) you can change the 1st parameter in the method "BeginSection( true / false ,.. ). So in my script I make the Header and footer at start and after I choose if I want to show them or not.

But I don't have the num page ( ex :  "page 1 / 2" ) in the footer whereas I used this :

ooutfile.Output ( "page de ","Arial",10,noir,transparent,centrer ,0);
    ooutfile.OutputField ( Constants.FIELD_PAGE, "Arial", 10, transparent, transparent, centrer );
    ooutfile.Output(" / ","Arial",10,noir,transparent,gauche ,0);
    ooutfile.OutputField ( Constants.FIELD_NUMPAGES, "Arial", 10, transparent, transparent, centrer );

Do you know how i can have the num page?

0
by Dominik Jenzer Author
Posted on Fri, 11/09/2012 - 11:51

Hi,

Thanks, your tip solves problem 1 and reduces the count of lines ;-)

I use exactly the same functions as you for the page-count.

  outfile.Output("Seite ", "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_CENTER, 0);
  outfile.OutputField(Constants.FIELD_PAGE, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_CENTER);
  outfile.Output(" von ", "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_CENTER, 0);
  outfile.OutputField(Constants.FIELD_NUMPAGES, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_CENTER);

I only have the problem, that the FIELD_NUMPAGES does not give the right value on the cover and the toc page. These pages will never be counted, and I guess that this is a bug.

0
by ephem ya
Posted on Fri, 11/09/2012 - 16:07

Hi,

It's not a bug. Like you say and you read in the help for the method BeginsSection :

"..creates respectively a new Document"

these functions creates seperate pages. So your first page it's the Page after the TOC, in france we count document pages like that.

Best Regards

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock