Focal Point
[CLOSED] Can FOOTING BOTTOM be done from a stylesheet?

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

December 10, 2010, 05:01 AM
Wep5622
[CLOSED] Can FOOTING BOTTOM be done from a stylesheet?
One of our report variations (the PDF type) requires that the footing is specified using FOOTING BOTTOM CENTER. Other reports don't.
This poses a problem for me, as we have standardized our reports so far now that adding a footing is done by merely including a file and setting a few variables - but in the case of PDF's I now suddenly need to use a different "command" in my include file than I use for the other reports, namely FOOTING BOTTOM CENTER instead of just FOOTING.

We also include different stylesheets, depending on the report format (HTML, EXL2K, PDF), so the centering is taken care of easily. But how do I go about that BOTTOM attribute? Can that be done in the stylesheet or will I need to perform more trickery with variables?

What I have in my reports boils down to:
-INCLUDE footing.fmt


Which contains something like:
FOOTING
"Bla bla bla bla bla &BLA"


I already have two different footing includes, I'd prefer not to explode those to different ones for each output format (2 footings * 3 formats = 6 files instead of my current 2).

This message has been edited. Last edited by: Kerry,


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
December 10, 2010, 07:38 AM
Tom Flynn
The reason for different styling is the requirements of the output application, namely ADOBE.

That is why we use Dialogue Manager variables.

  
-SET &FOOT_PDF = IF &FMT EQ 'PDF' THEN 'FOOTING BOTTOM CENTER' ELSE 'FOOTING';
&FOOT_PDF
-INCLUDE footing.fex


May have to have a section in the footing.fex to branch based on output, as, we always do.

-GOTO &FMT
-PDF
style code for PDF
...
...
-GOTO END_FOOT

-EXL2K
...
...
...
-GOTO END_FOOT

-HTML
....
....
....
-END_FOOT


Shouldn't take too much to incorporate...

Tom

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe