Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Paneling in a pdf file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Paneling in a pdf file
 Login/Join
 
Member
posted
I've created a WebFocus report going to a pdf file. I have SQUEEZE=ON, GRID=OFF and have added SET SPACES=1. I've put the font size to 8. All to no avail. There are huge gaps between the 7 columns forcing it to panel to page 1.2. How can I get rid of these gaps?
 
Posts: 20 | Location: Syracuse NY | Registered: August 26, 2005Report This Post
Expert
posted Hide Post
I don't think SET SPACES has any effect for PDF, HTML and Excel reports.

For PDF reports, add this to your style sheet:

TYPE=REPORT, LEFTGAP=0.03, RIGHTGAP=0.05, $

You may change the amounts as you wish.

This makes quite a difference to the PDF report.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
I added the code but it appeared to have no affect. I even decreased the numbers. I tried both of these...
ON TABLE SET ONLINE-FMT PDF
ON TABLE PCHOLD FORMAT PDF
I'm not sure what the difference is between them but neither one worked any differently.
 
Posts: 20 | Location: Syracuse NY | Registered: August 26, 2005Report This Post
Gold member
posted Hide Post
You might want to try this Property
WRAP=1, or
WRAP= 0.5, or
WRAP= 0.25


-* SAMPLE STYLE SHEET FOR PDF
-*
TYPE=REPORT,
GRID=OFF,
SIZE=10,
WRAP=0.5,
STYLE=NORMAL,
RIGHTGAP=0.125000,
$
 
Posts: 82 | Location: Chicago | Registered: September 28, 2005Report This Post
Member
posted Hide Post
That's the ticket! Works great. Thanks.
 
Posts: 20 | Location: Syracuse NY | Registered: August 26, 2005Report This Post
Virtuoso
posted Hide Post
LEFTGAP and RIGHTGAP control the spacing between the data values and the boundries of the cell it is in. Basically, these two settings act like the CELLPADDING tag in HTML.

In order to control the WIDTH of each column in a PDF output, use the WRAP or SQUEEZE commands. WRAP will do exactly that. If a value is longer than the width specified in the WRAP command then it will wrap the value to the next line within the column. SQUEEZE will truncate the value and i'm pretty sure puts a '!' at the end of the value to indicate it was truncated.

TYPE=REPORT, WRAP=1.5,$ or

TYPE=REPORT, SQUEEZE=1.5,$

You can control individual columns as well.

TYPE=REPORT, WRAP=1.5,$
TYPE=REPORT, COLUMN=P2, WRAP=.5,$
TYPE=REPORT, COLUMN=P3, WRAP=2,$
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
It is interesting to note that even with SQUEEZE=ON, there were "huge gaps between the 7 columns". There was no suggestion that the data in the columns was very long, hence necessitating the use of WRAP.

Am I missing something?
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks for the info on the GAPS and WRAP, Mickey.

You're right, Francis. The data was not very long at all - one 50 char description field being the longest. I thought the WRAP had worked but when I scrolled down through the report, it turned into funky things - asterisks, repeated numbers, etc. I opened an IBI problem report and got the answer below. The IN +1 worked, the PRINTPLUS didn't seem to do much.

FROM IBI:
Try setting PRINTPLUS=ON at the top of your Procedure.

Or just use the IN parameter.

TABLE FILE CAR
PRINT SEATS IN +1 SALES IN +1 RCOST DCOST CAR
BY COUNTRY
BY MODEL IN +1
BY BODYTYPE IN +1
 
Posts: 20 | Location: Syracuse NY | Registered: August 26, 2005Report This Post
Virtuoso
posted Hide Post
Is it just me or does it sound strange that using the IN +1 would fix a problem like this? Since working with WebFOCUS I have all together abandoned use of the IN phrase because it is meaningless in the HTML world. I also didn't think it would be necessary to use when creating a PDF since WRAP or SQUEEZE has always worked for me. Maybe I do not understand the rest of your FOCEXEC and whether or not you are doing some other formatting to the report in combination with the WRAP command that would cause this problem.

Sounds very strange to me but I'm glad it works for you.

If you can share additional code to help us see the light that would be great since this is sticking in my head as an open ended issue. The problem was resolved but WHY the use of IN +1 fixed it makes no sense to me. Can anyone educate me?
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Paneling in a pdf file

Copyright © 1996-2020 Information Builders