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     [SOLVED] Aligning column heading in PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Aligning column heading in PDF
 Login/Join
 
Member
posted
Hi,

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,
RS

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


WebFOCUS 7.6.2
 
Posts: 17 | Registered: November 01, 2006Report This Post
Expert
posted Hide Post
Ravi,

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.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
Dear Ginny,
The code mentioned below would replicate the problem i am facing. PLease provide me with a solution.

 
TABLE FILE CAR
PRINT
CAR AS 'Car'
MODEL AS 'Model' OVER
BODYTYPE AS 'Body Type' 
SEATS AS 'Seat' OVER
DEALER_COST AS 'Dealer Cost'
RETAIL_COST AS 'Retail Cost' OVER
SALES AS 'Sales'

WHERE RECORDLIMIT EQ 1

ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET CSSURL './css/mystyle.css'
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$

TYPE=REPORT,
SQUEEZE=ON,
$

TYPE=DATA,
     COLUMN=N1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
     COLUMN=N2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
     COLUMN=N3,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),




$
TYPE=DATA,
     COLUMN=N4,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
     COLUMN=N5,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
     COLUMN=N6,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
     COLUMN=N7,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
$

TYPE=TITLE,
     COLUMN=N1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
  BACKCOLOR=RGB(222 237 253),
$
TYPE=TITLE,
     COLUMN=N2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
  BACKCOLOR=RGB(222 237 253),
$
TYPE=TITLE,
     COLUMN=N3,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
  BACKCOLOR=RGB(222 237 253),
$
TYPE=TITLE,
     COLUMN=N4,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
  BACKCOLOR=RGB(222 237 253),
$
TYPE=TITLE,
     COLUMN=N5,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
  BACKCOLOR=RGB(222 237 253),
$
TYPE=TITLE,
     COLUMN=N6,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
  BACKCOLOR=RGB(222 237 253),
$
TYPE=TITLE,
     COLUMN=N7,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(199 227 254),
     BORDER-BOTTOM-COLOR=RGB(199 227 254),
     BORDER-LEFT-COLOR=RGB(199 227 254),
     BORDER-RIGHT-COLOR=RGB(199 227 254),
  BACKCOLOR=RGB(222 237 253),
$

ENDSTYLE
END


Thanks,
RS


WebFOCUS 7.6.2
 
Posts: 17 | Registered: November 01, 2006Report This Post
Guru
posted Hide Post
Try using this code for the print

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
 
Posts: 398 | Registered: February 04, 2008Report This Post
Member
posted Hide Post
RSquared,

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,
RS.


WebFOCUS 7.6.2
 
Posts: 17 | Registered: November 01, 2006Report This Post
Guru
posted Hide Post
Ravindra,

This process does print for PDF, the problem is when you open the .fex in the Report Assistant which doesn't seem to like the positioning.

I hae played with the positioning and the styleing a little.
Thr this
/*
-* File 1atesta1.fex
-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
WHERE RECORDLIMIT EQ 1
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET CSSURL './css/mystyle.css'
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
SQUEEZE=ON,
$
TYPE=DATA,
COLUMN=CAR,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=MODEL,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=BODYTYPE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=SEATS,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=DEALER_COST,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=RETAIL_COST,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=SALES,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=TITLE1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE2,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE3,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE4,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE5,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE6,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE7,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
ENDSTYLE
END
/*


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Member
posted Hide Post
RSquared,

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.

Thanks,
RS.


WebFOCUS 7.6.2
 
Posts: 17 | Registered: November 01, 2006Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
Guru
posted Hide Post
Ravindra,

Try this
/code starts here

-* File 1atesta1.fex
-SET &ECHO=ALL;
DEFINE FILE CAR
TITLE1/A11=' Car';
TITLE2/A11=' Model';
TITLE3/A11=' Body Type';
TITLE4/A11=' Seat';
TITLE5/A11='Dealer Cost';
TITLE6/A11='Retail Cost';
TITLE7/A11=' Sales';
END
TABLE FILE CAR
PRINT
TITLE1 AS '' IN 2 CAR AS '' IN 17
TITLE2 AS '' IN 35 MODEL AS '' IN 50 OVER
TITLE3 AS '' IN 2 BODYTYPE AS '' IN 17
TITLE4 AS '' IN 35 SEATS AS '' IN 50 OVER
TITLE5 AS '' IN 2 DEALER_COST AS '' IN 17
TITLE6 AS '' IN 35 RETAIL_COST AS '' IN 50 OVER
TITLE7 AS '' IN 2 SALES AS '' IN 17
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET CSSURL './css/mystyle.css'
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
SQUEEZE=ON,
$
TYPE=DATA,
COLUMN=CAR,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=MODEL,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=BODYTYPE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=SEATS,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=DEALER_COST,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=RETAIL_COST,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=SALES,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
$
TYPE=DATA,
COLUMN=TITLE1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
WRAP=1.0,
$
TYPE=DATA,
COLUMN=TITLE2,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
WRAP=1.0,
$
TYPE=DATA,
COLUMN=TITLE3,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
WRAP=1.0,
$
TYPE=DATA,
COLUMN=TITLE4,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE5,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE6,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
TYPE=DATA,
COLUMN=TITLE7,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-COLOR=RGB(199 227 254),
BORDER-BOTTOM-COLOR=RGB(199 227 254),
BORDER-LEFT-COLOR=RGB(199 227 254),
BORDER-RIGHT-COLOR=RGB(199 227 254),
BACKCOLOR=RGB(222 237 253),
$
ENDSTYLE
END
/ code ends here


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Member
posted Hide Post
Thanks Darin/RSquared,

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.

Thankks,
RS.


WebFOCUS 7.6.2
 
Posts: 17 | Registered: November 01, 2006Report This Post
Expert
posted Hide Post
ravi,

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, 2004Report This Post
Guru
posted Hide Post
quote:
TYPE=REPORT,
SQUEEZE=ON,
$


RS,

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:

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


Hua


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Member
posted Hide Post
Thanks T and Hua,

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.

Thanks,
RS.


WebFOCUS 7.6.2
 
Posts: 17 | Registered: November 01, 2006Report 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     [SOLVED] Aligning column heading in PDF

Copyright © 1996-2020 Information Builders