Focal Point
[SOLVED] Paneled & Compound Reports using NOBREAK

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

January 07, 2015, 05:27 PM
Max Nevill
[SOLVED] Paneled & Compound Reports using NOBREAK
After making a large compound report in web focus 7.6 that makes use of "ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK" in many places, the decision maker came back to me and asked for next to each column, the column % of that report. I thought it would be an easy fix, but instead get the error:

0 NUMBER OF RECORDS IN TABLE= 68 LINES= 18
(FOC3218) NOTE: REPORT WILL BE PANELED; TOTAL WIDTH IS: 12.04 INCHES
(FOC3269) PDF: CANNOT USE NOBREAK WITH PANELED REPORTS
(FOC3298) ERROR FOUND IN A COMPOUND REPORT
Compound Report is TERMINATING.....

The only change was

(DEFINE)

TABLE FILE TEST_TABLE
SUM
COLUMN1

(OTHER STUFF)


to

(DEFINE)

TABLE FILE TEST_TABLE
SUM
COLUMN1
PCT.COLUMN1/D5%
(OTHER STUFF)

Anyone know some kind of work around?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 8.104
Windows 7 Entreprise, SP1
January 07, 2015, 05:39 PM
Waz
You need to make more space for the new column.

Either adjusting margins, or dropping font size, or wrapping some columns to a specified width.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 07, 2015, 07:50 PM
Max Nevill
Waz:

Dropping the page size down still produces a blank page.


WebFocus 8.104
Windows 7 Entreprise, SP1
January 07, 2015, 07:59 PM
Waz
Hi Max,

I didn't mention Page Size.

Have you tried adjusting the LEFT/RIGHTMARGIN size ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 08, 2015, 01:22 AM
Pravin.Singh
Max:

The new change in the column is taking more space. Either you wrap other columns to make space for the new one or try increasing the page size for PDF report. Try the following code to increase the page size:
ON TABLE SET STYLE *
TYPE=REPORT,
-IF &FMT NE 'PDF' THEN GOTO SKP_SIZE;
PAGESIZE=B,
-SKP_SIZE
ORIENTATION=LANDSCAPE,$
ENDSTYLE

You can use the letters from B,C,D and E for different page sizes. I think E is the maximum page size available.

Let me know if you need code for WRAP also.

Thanks,
Pravin Singh


WebFOCUS 7703
Windows, All Outputs
pravinsinghwebfocus.blogspot.com
January 08, 2015, 03:50 PM
Max Nevill
Thanks for the help guys, I got it to work with changing the orientation inside of the layout instead of using a preceding SET command.


WebFocus 8.104
Windows 7 Entreprise, SP1
January 08, 2015, 03:58 PM
Waz
The important thing, I guess, with a compound PDF is to have all the pieces looking consistant so it looks like a single document.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 09, 2015, 01:59 AM
Rifaz
Max, Don't forget, users may print in their machines to see the reports, so as Waz said, it should be consistent.


-Rifaz

WebFOCUS 7.7.x and 8.x
January 13, 2015, 01:01 PM
j.gross
I had similar problems recently when migrating reports from 7.x to 8.x: 8.x made the page (in PDF) spread to two panels.

I found it helpful to add background colors during testing. It revealed how wide the rendering engine considered each data column, and how that was affected by each tweak I applied to the styling.

Reusable code below can be useful in this connection. Top section can be a -INCLUDE; Use "-SET &bgRainbow=1;" to override the DEFAULT, activating the palette of colors; the final section of code goes in the STYLE section of the report (explicitly, to maintain GUI compatibility).

- test: SET &bgRainbow=1;

-DEFAULTH &bgRainbow=0;
-* &bgRainbow switches background colors on or off for the report
-* =1 (for testing) turns the feature on, defining &bg1 thru &bg6 as a palette of pastel colors.
-* =0 (the Production setting) turns the feature off, by defining them all as "white"

-SET &bg1=DECODE &bgRainbow(0 white ELSE 'rgb(#9999ee)');
-SET &bg2=DECODE &bgRainbow(0 white ELSE 'rgb(#99ee99)');
-SET &bg3=DECODE &bgRainbow(0 white ELSE 'rgb(#99eeee)');
-SET &bg4=DECODE &bgRainbow(0 white ELSE 'rgb(#ee9999)');
-SET &bg5=DECODE &bgRainbow(0 white ELSE 'rgb(#ee99ee)');
-SET &bg6=DECODE &bgRainbow(0 white ELSE 'rgb(#eeee99)');


Add code like the following to the STYLE section, to conditionally apply background colors to the rendered ('printed') columns.

   type=report,column=P1, backcolor=&bg1,$
   type=report,column=P2, backcolor=&bg2,$
   type=report,column=P3, backcolor=&bg3,$
   type=report,column=P4, backcolor=&bg4,$
   type=report,column=P5, backcolor=&bg5,$
   type=report,column=P6, backcolor=&bg6,$
   type=report,column=P7, backcolor=&bg1,$
   type=report,column=P8, backcolor=&bg2,$
   type=report,column=P9, backcolor=&bg3,$
   type=report,column=P10,backcolor=&bg4,$
   type=report,column=P11,backcolor=&bg5,$
   type=report,column=P12,backcolor=&bg6,$



- Jack Gross
WF through 8.1.05