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:
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 :
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.
style code for PDF
Shouldn't take too much to incorporate...
TomThis message has been edited. Last edited by: Tom Flynn,
WebFOCUS 7.7.05 - PROD/QA
DB2 - AS400 - Mainframe
|Powered by Social Strata|