Focal Point
[SOLVED] Automatically fit PDF report on page?

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

October 03, 2012, 02:02 PM
JC Zhu
[SOLVED] Automatically fit PDF report on page?
Is there a way to set a report to be exported to a single page in PDF? That is, if the report is too wide to fit on a normal A4 page, I'd like it to be automatically zoomed out so that the whole report becomes small enough to git in a single page.

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


WebFOCUS 7.7.3
Windows, All Outputs
October 03, 2012, 03:28 PM
Mighty Max
I don't know of any feature to automatically fit a pdf report on one page. Use LANDSCAPE orientation, WRAP on your columns, and set the values of LEFTGAP and RIGHTGAP. But if you have like 20 columns to display its going to be hard to fit the report in one page.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
October 03, 2012, 03:35 PM
Prarie
Also you can reduce the size of the font to gain more space.
TYPE=REPORT,
SIZE=9,$

And adjust your column headings
October 03, 2012, 04:57 PM
rfbowley
You might want to look into using
  
PAGESIZE={size}


The default is "LETTER", but there are a whole list of other options. One of my first clients INSISTED on over 25 columns on one report. After I sent it as font size 2 on a size=d, he finally got the message when he tried to print it.

Unless the user notices and changes it, the pdf reader print functionality will automatically shrink the output to fit on 8 1/2 x 11.

Totally unreadable, but all the columns were there :-)


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
October 03, 2012, 05:58 PM
JC Zhu
Thanks to all for your reply. I came to the same conclusions and my current solution is the same as Robert's suggestion.


WebFOCUS 7.7.3
Windows, All Outputs
October 03, 2012, 06:13 PM
Waz
We have in the past created a loop to produce the report, then test the &FOCERRNUM, if the report panelled, then reloop and change the page size/orientation.

You can go to extrememly large page sizes.


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 11, 2016, 07:35 AM
Ricardo Augusto
quote:
WRAP

I Wish I could learn how to fit a compound pdf report.

I canĀ“t handle that OVERFLOW-POSITION and OVERFLOW-DIMENSION.


WebFOCUS 8.1.05 / APP Studio