Focal Point
Page Numbers in an Compound Report - PDF

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/100103212

August 17, 2009, 02:07 PM
saggy
Page Numbers in an Compound Report - PDF
Hi, i am hainvg a compound report in PDF which has two reports to be showed with in it.

As of now i am using SET COMPOUND = OPEN to display the reports one after the other, and i have a footing on both the reports
"Pageof<+0>to display the page numbers on the report .But it is showing inncorrect page numbers, like if the complete report is of 3 pages is shows page numbers 1 of 2
2 of 3 and 2 of 1
Which is quite misleading in the PDF output especially.so if you can tell me where the issue it wud be grateful.Already existing posts on this in the forums didn't help much.Please suggest soon.


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


August 17, 2009, 02:46 PM
GinnyJakes
saggy,

Please use the new tool, PDF Layout Painter, to compound your reports. Then use a Page Master to set up the page numbers.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
August 17, 2009, 03:01 PM
saggy
cant this be done without using the layout painter??


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


August 17, 2009, 03:20 PM
GinnyJakes
Not unless you want to count the pages yourself for each report and adjust as necessary when you get to the second one. You'd probably have to do multiple passes.

Why are you opposed to using the layout painter?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
August 19, 2009, 03:14 PM
saggy
because my fex contains the code to display the output in other formats as well if i use the layout painter it might disturb my existing code.Also can u send an example of this using the layout painter.Coz when i tried this i was not able to do so .thanks for your help


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


August 19, 2009, 03:41 PM
Doug
Try this Saggy: Here's a freebee for you that counts the pages in a compound report for you, and for those of us who want to code the text rather then use the GUI...

-SET &TOTALPAGES = 1 ;
-SET &HoldCounter = 0 ;
-SET &COMPOUNDCNT = 0 ;
-REPEAT COMPOUNDRPT 2 TIMES ;
-SET &COMPOUNDCNT = &COMPOUNDCNT + 1 ;
-SET &HOLDorPCHOLD = IF &COMPOUNDCNT EQ 1 THEN 'HOLD' ELSE 'PCHOLD' ;
-SET &ReportTitle 'Net Asset Valuation Overview Report             ' ;
-SET &PDF_HOLD = 'ON TABLE ' | &HOLDorPCHOLD | ' FORMAT PDF OPEN' ;
-TYPE *** DOING : &PDF_HOLD FOR THE TITLE PAGE
-INCLUDE REPORT01
-SET &PDF_HOLD = 'ON TABLE ' | &HOLDorPCHOLD | ' FORMAT PDF CLOSE' ;
-INCLUDE REPORT02 (last report)
-* DONE!

Within the REPORT1.FEX and REPORT2.FEX I use this line "&PDF_HOLD.EVAL" instead of a "ON TABLE PCHOLD [whatever]"

Let me know how it works out for you...
Doug




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
August 20, 2009, 01:21 PM
saggy
Hi Doug,
thanks for the code,its giving the total number of pages correctly but in my report i need to display in the footing sm thing like [Current Page num] of [Total Pages] means if the compound report has 5 pages. The page 1 shld have footing Page 1 of 5.I am sending the same code again can u do the required modifications to show it up correctly.Because the second page of the report shows page 2 of 1 becuase the 2nd report is for 1 page only.

-SET &TOTALPAGES = 1 ;
-SET &HoldCounter = 0 ;
-SET &COMPOUNDCNT = 0 ;
-REPEAT COMPOUNDRPT 2 TIMES ;
-SET &COMPOUNDCNT = &COMPOUNDCNT + 1 ;
-SET &HOLDorPCHOLD = IF &COMPOUNDCNT EQ 1 THEN 'PCHOLD' ELSE 'PCHOLD' ;
-SET &ReportTitle = 'Net Asset Valuation Overview Report ' ;
-SET &PDF_HOLD = 'ON TABLE ' | &HOLDorPCHOLD | ' FORMAT PDF OPEN' ;
-TYPE *** DOING : &PDF_HOLD FOR THE TITLE PAGE
TABLE FILE CAR
PRINT CAR
BY SALES
FOOTING
"&ReportTitle"
"Pageof<+0>&PDF_HOLD.EVAL
END
-SET &PDF_HOLD = 'ON TABLE ' | &HOLDorPCHOLD | ' FORMAT PDF CLOSE' ;
TABLE FILE CAR
PRINT CAR
BY SALES
FOOTING
"Pageof<+0>&PDF_HOLD.EVAL
END
-* DONE!


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


August 20, 2009, 01:29 PM
saggy
some how not able to put the keywords tablastpage and tabpageno in the post.so the footing must be currpageno of totalpagenos
for a 5 page report the first page shld be
1 of 5
second page shld be 2 of 5 and so on.


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML