Focal Point
<SOLVED>Compound PDF reports

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

May 12, 2014, 02:11 AM
Rakesh Boddu
<SOLVED>Compound PDF reports
Hi Guys,

I created compound PDF reports .I am having an issue in it.

I replicated my problem with CAR example.

 -*-------------------Header Report---------
SET COMPOUND = OPEN
TABLE FILE CAR
HEADING
"CAR:<CAR"
" RCOST:<RCOST"
" DCOST:<DCOST"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF NOBREAK
END
-*------------------Detailed Report----------
TABLE FILE CAR
  PRINT 
    RCOST 
    DCOST
  BY CAR 
  ACROSS COUNTRY
  ON TABLE SET BYPANEL ON
  ON TABLE PCHOLD FORMAT PDF CLOSE
END
 


If i run this i am facing an error

[IMG:left] [/IMG]

If i remove NOBREAK in my first report(Header Report) then i am not getting any error
but i am getting my First report in one page and second report in next page.

I need my second report at the end of my first report.

Can you guys help me.

Valid inputs are highly appreciated.

Thanks in advance.
Rakesh

This message has been edited. Last edited by: Rakesh Boddu,


WebFOCUS 8.0.03
Windows, All Outputs
May 12, 2014, 02:42 AM
Waz
The width of one of the report components is wider that the PDF page.

This is not allowed when you use NOBREAK.

You need to either change the size of the PDF layout to a larger one or reduce the with, by changing the styling, say font size, etc


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!

May 12, 2014, 02:52 AM
Rakesh Boddu
Thanks Waz for very quick response.

I cannot change width ,i cannot make it static.
The ACROSS columns are dynamic.

Is there any other way to bring my second report to the end of first report.

Thanks,
Rakesh


WebFOCUS 8.0.03
Windows, All Outputs
May 12, 2014, 10:41 AM
Anatess
You cannot have the 2nd report in a compound no-break report not fit in the pagesize of the first report... it just is not logical.

Here, this should work for you:

TABLE FILE CAR
HEADING
"CAR:" RCOST:" DCOST:ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK
END
-*------------------Detailed Report----------
TABLE FILE CAR
PRINT
RCOST
DCOST
BY CAR
ACROSS COUNTRY
ON TABLE SET BYPANEL ON
ON TABLE PCHOLD FORMAT PDF CLOSE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,PAGESIZE='LETTER',ORIENTATION=LANDSCAPE,SIZE=8,$
ENDSTYLE
END

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


WF 8.1.05 Windows
May 12, 2014, 05:35 PM
Waz
How dynamic is the across ?

What is the maximum number of values ?

When designing a report these are the sorts of things that need to be considered.

You can change the PAGESIZE and ORIENTATION, as we Anatess' example.

Page Size can be quite large, but ends up very small.

Another option is to use a coordinated compound report, this way you can have multiple reports handing the across parts.


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!

May 13, 2014, 02:55 AM
Rakesh Boddu
Hi Waz and Anatess,

Thanks for replies.Great

Instead of using Compund PDF,i joined my SQL's and i am using just PDF report.

Thanks,
Rakesh


WebFOCUS 8.0.03
Windows, All Outputs