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.
I have a PDF file, where the columns are 'OVER'ed to get the columns horizontally. it is one single row of data coming in multiple columns in this report. every column header has the 'BACKCOLOR'. But i am unable to align them(the column headers) uniformly. The heading 'BACKCOLOR' length is not uniform for the column headers which are falling one below the other. Please help.
Thanks, RSThis message has been edited. Last edited by: Kerry,
Please update your profile signature with your products, releases and platforms so that we can help you better.
Also try to reproduce your problem with one of the demo files like CAR, or EMPLOYEE or CENTURYSALES or GGSALES and post the code here between the code tags, the "< />" in red, rightmost icon in the reply window.
DEFINE FILE CAR TITLE1/A30='Car'; TITLE2/A30='Model'; TITLE3/A30='Body Type'; TITLE4/A30='Seat'; TITLE5/A30='Dealer Cost'; TITLE6/A30='Retail Cost'; TITLE7/A30='Sales'; END TABLE FILE CAR PRINT TITLE1 AS '' IN 2 CAR AS '' IN 15 TITLE2 AS '' IN 35 MODEL AS '' IN 45 OVER TITLE3 AS '' IN 2 BODYTYPE AS '' IN 15 TITLE4 AS '' IN 35 SEATS AS '' IN 45 OVER TITLE5 AS '' IN 2 DEALER_COST AS '' IN 15 TITLE6 AS '' IN 35 RETAIL_COST AS '' IN 45 OVER TITLE7 AS '' IN 2 SALES AS '' IN 15
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
Thanks for the reply. The solution u have given is working fine for HTML, but it is not working for PDF. I need to implement the same in PDF. Please help.
Thanks for the reply, but neither did this work. I had tried the same before as well, but had not found the solution. Please keep me posted if you find any solution to this.
Something like the following should work. Taking from R^2's code:
-SET &ECHO=ALL;
DEFINE FILE CAR
TITLE1/A15='Car ';
TITLE2/A15='Model ';
TITLE3/A15='Body Type ';
TITLE4/A15='Seat ';
TITLE5/A15='Dealer Cost ';
TITLE6/A15='Retail Cost ';
TITLE7/A15='Sales ';
END
TABLE FILE CAR
PRINT
TITLE1 AS '' IN 2 CAR AS '' IN 20
TITLE2 AS '' IN 35 MODEL AS '' IN 50 OVER
TITLE3 AS '' IN 2 BODYTYPE AS '' IN 20
TITLE4 AS '' IN 35 SEATS AS '' IN 50 OVER
TITLE5 AS '' IN 2 DEALER_COST AS '' IN 20
TITLE6 AS '' IN 35 RETAIL_COST AS '' IN 50 OVER
TITLE7 AS '' IN 2 SALES AS '' IN 20
BY CAR NOPRINT
BY MODEL NOPRINT UNDER-LINE
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=DATA,BORDER=OFF,$
TYPE=REPORT,COLUMN=TITLE1,STYLE=BOLD,BACKCOLOR=RGB(222 237 253),WRAP=1.0,$
TYPE=REPORT,COLUMN=TITLE2,STYLE=BOLD,BACKCOLOR=RGB(222 237 253),WRAP=1.0,$
TYPE=REPORT,COLUMN=TITLE3,STYLE=BOLD,BACKCOLOR=RGB(222 237 253),WRAP=1.0,$
TYPE=REPORT,COLUMN=TITLE4,STYLE=BOLD,BACKCOLOR=RGB(222 237 253),WRAP=1.0,$
TYPE=REPORT,COLUMN=TITLE5,STYLE=BOLD,BACKCOLOR=RGB(222 237 253),WRAP=1.0,$
TYPE=REPORT,COLUMN=TITLE6,STYLE=BOLD,BACKCOLOR=RGB(222 237 253),WRAP=1.0,$
TYPE=REPORT,COLUMN=TITLE7,STYLE=BOLD,BACKCOLOR=RGB(222 237 253),WRAP=1.0,$
ENDSTYLE
END
The trick is the WRAP= piece which fools WF into fully justifying that column so everything is aligned and the column shading is complete. Just need to make sure that the value for WRAP is as long as the max length of that column or it DOES wrap. The BORDER=OFF is also necessary - it also fools WF into reserving the complete length for a BORDER, but not showing it.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I have already tried the kind of code you have posted. But aligning is still a problem 'coz the length of the column headings are varying and do not fit into a single length. Please help in a scenario like this.
Did you try Darin's code? The WRAP syntax is the key to what you want to do.
For more suggestions on how to control formatting in reports check out the two articles by Mickey Grackin within the Tips and Techniques section under the Developer Centre.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Try to turn the SQUEESE=OFF, run your report to see how wide your report is. Then use SQUEESE=n to adjust the width(s) the column(s). Where n is the number of units(can be fractional). It only takes a few tries and you will get the desirable report. I learned a lot from these links:
Wrap is working fine. Using the WRAP/SQUEEZE i am able to align the columns. But the problem is with the Column heading. The headings are not getting aligned properly.