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     Data Alignment in PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Data Alignment in PDF
 Login/Join
 
Master
posted
When I run the report in PDF with ACROSS value, Justify option is not working.

Try the following code,

HTML - gives me the desired output
PDF - not aligned proper

TABLE FILE CAR
SUM DEALER_COST/D12.1 AS ''
BY COUNTRY AS ''
ACROSS CAR AS ''
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,SQUEEZE=ON,SIZE=7,$
TYPE=ACROSSVALUE,COLOR=GREEN,JUSTIFY=RIGHT,$
TYPE=REPORT,ACROSSCOLUMN=DEALER_COST,JUSTIFY=RIGHT,COLOR=RED,$
ENDSTYLE
END
-EXIT

I'm not sure where I'm missing, Please let me know your thoughts.

Thanks


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
Check Mickey's article for some insight.

http://www.informationbuilders.com/support/developers/htmlpdf_part2.html


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
Kamesh,

Add WRAP=#.## settings to your request.

1) Make sure the WRAP is set for both the ACROSSVALUE and the ACROSSCOLUMN.
2) Make sure the WRAP value is wide enough for both the across values and the across column values.
3) Make sure the WRAP value is EXACTLY THE SAME in both statements.

For Example:

TABLE FILE CAR
SUM DEALER_COST/D12.1 AS ''
BY COUNTRY AS ''
ACROSS CAR AS ''
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,SQUEEZE=ON,SIZE=7,WRAP=0.60,$
TYPE=ACROSSVALUE,COLOR=GREEN,JUSTIFY=RIGHT,WRAP=0.60,$
TYPE=REPORT,ACROSSCOLUMN=DEALER_COST,JUSTIFY=RIGHT,COLOR=RED,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Master
posted Hide Post
Thanks Mickey, it works like a charm.

I didn't understand how the WRAP makes the difference.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
Oddly, if you change the format of DEALER_COST to, say, D12.3, it aligns correctly.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Kamesh,

Here is a link to the PART 1 article I wrote which talks about SQUEEZE and WIDTH.

http://www.informationbuilders.com/support/developers/htmlpdf.html

In regards to your experience with your request, I suggest opening a case with IBI Tech Support. This looks like it may be an issue/bug.

Francis,

Here's my guess why it didn't work as expected:

The engine that creates the PDF probably applied the SQUEEZE to the ACROSSVALUES seperately from the ACROSSCOLUMN values. Therefore it came up with a different column width for the ACROSSVALUES for CAR than it did for the ACROSSCOLUMN values for DEALER_COST. Applying the WRAP setting forces the same column width for both. Judging from the way the results appear, this looks like it may be what is happening. Changing the format for DEALER_COST makes it longer so the calculated column width for DEALER_COST is wider. Ironically if you make the format D12.6 everything still works because the column width for the ACROSSVALUES adjusts to match the column width for DEALER_COST values.

Very interesting.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
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     Data Alignment in PDF

Copyright © 1996-2020 Information Builders