Focal Point
How to add a shadowbox to a pdf TABFOOTING

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

April 08, 2008, 02:47 PM
rfbowley
How to add a shadowbox to a pdf TABFOOTING
The end user is being very adamant that they want their summary data to have a shadow box (a black border on the top and right side of the data). The report must be delivered iin pdf, and the table portion of the report normally has 10-20 pages. This summary data, normally 4-6 lines is to appear centered on the last page of the detail data. Placing the summary data on it's own pag eis not acceptable.

Any ideas?


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
April 08, 2008, 03:00 PM
Prarie
Will you please update your signature with what version of WebFocus you are using. It will make a diffence in your options for this request.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
My apologies. This particular client is running 7.61


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
Is the amount of detail data on the last page always the same? If not, what if there isn't room for the summary data?

This can all be done with the compound report tool (PDF Layout Painter, I think it's called now) or just in the code by controlling the overflow and/or use of BREAK/NOBREAK syntax. The shadow box can also be accomplished a couple of different ways, using inclusion and proper placement of images and/or lines.

Without any more detail or examples, it's harder to get much more specific other than to say it all sounds do-able.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
How about placing the summary report on the first page, would that be acceptable?

If you put it on the last page and it is not allowed to place it on a separate page, what happens if the last page has not enough place to hold the summary.

We have a saying here in the Netherlands that is:
"One lunatic can ask more than 10 very wise man can answer."

Sometimes the end users act like that.

Who said sometimes.....




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

Robert,

Jodye Yates came up with a workable styling for drawing lines in PDF. You can find it in this post.

He also wrote an article for the Tips and techniques pages that calculates the length of the line depending upon data to be included within the report, here. It might serve to spark a few ideas of your own on how to calculate the positioning that you require?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
rfbowley,

The following does not seem to be documented anywhere but it works with WF713. This may help you with what you are trying to do.

Use the following code to see how to control BOXes.

TABLE FILE CAR
SUM RCOST DCOST
BY COUNTRY
BY CAR
ON TABLE SET PAGE NOPAGE
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLESHEET *
TYPE=REPORT, COLUMN=COUNTRY, WRAP=1.00,$
TYPE=REPORT, COLUMN=CAR , WRAP=1.00,$
TYPE=REPORT, COLUMN=RCOST , WRAP=1.25,$
TYPE=REPORT, COLUMN=DCOST , WRAP=1.25,$
TYPE=REPORT, NAME='BOX001', OBJECT=BOX, POSITION=(0.200 0.400),
DIMENSION=(8.10 5.00),
BORDER-COLOR=RED, BORDER=HEAVY,
BACKCOLOR=RGB(212 212 212),$
TYPE=REPORT, NAME='BOX002', OBJECT=BOX, POSITION=(1.40 0.425),
DIMENSION=(1.20 4.75),
BORDER-COLOR=BLUE, BORDER=HEAVY,
BACKCOLOR=WHITE,$
TYPE=REPORT, NAME='BOX003', OBJECT=BOX, POSITION=(2.70 0.425),
DIMENSION=(1.40 4.75),
BORDER-COLOR=GREEN, BORDER=HEAVY,
BACKCOLOR=YELLOW,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
The following also seem to work:

OBJECT= LINE and OBJECT=IMAGE


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011