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.
hi to all im trying to send an htmltable to excel its work fine bu the max row of data is 50 and after that im getting the hader agine and the rest of the data how can i set the reoprt to be in one hader and more than 50 row??
the exsample code is :
TABLE FILE CAR
PRINT CAR MODEL SEATS
BY COUNTRY
ON TABLE HOLD AS SHORT FORMAT HTMTABLE
END
-RUN
SET HTMLFORMTYPE= XLS
-HTMLFORM BEGIN
<html>
<head>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" bgcolor="F3F3F3">
<table dir="rtl" border="2" align="RIGHT">
<tr>
<td >
!IBI.FIL.SHORT;
</td>
</tr>
</table>
</body>
</html>
-HTMLFORM END
This message has been edited. Last edited by: Kerry,
tnx set lines=999999 work great but i have one more problem... when i get the report in the excel the rest of the grid i disaper... i have onle the grid for the data how can i set the grid in all the excel page?? tnx
tnx set lines=999999 work great but i have one more problem... when i get the report in the excel the rest of the grid i disaper... i have onle the grid for the data how can i set the grid in all the excel page?? tnx
tnx set lines=999999 work great but i have one more problem... when i get the report in the excel the rest of the grid i disaper... i have onle the grid for the data how can i set the grid in all the excel page?? tnx
What do you mean by "When I get the report in Excel the rest of the grid disappears... I have only the grid for the data, how can I set the grid for the whole the Excel worksheet?"
Are you expecting Excel borders around every cell in the Excel worksheet?
Have you tried ON TABLE PCHOLD FORMAT EXL2K instead of SET HTMLFORMTYPE=XLS?
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
Tnk FOR THE REPLAY IM USING HTMLFORMTYPE=XLS BECUASE I HAVE TO SET "DIR=RTL"
AND YES IM expecting Excel borders around every cell in the Excel worksheet BUT EVERY CELL IS WHITE NO BORDER
HOW CA I SOLVE THIS??
the code is
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
SALES
BY COUNTRY NOPRINT
BY SEATS
HEADING
"SALES REPORT FOR COUNTRY <COUNTRY"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD FORMAT HTMTABLE AS AAA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
$
TYPE=REPORT,
GRID=ON,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
$
TYPE=HEADING,
JUSTIFY=CENTER,
$
TYPE=REPORT,
COLUMN=N6,
WRAP=8.000000,
$
TYPE=REPORT,
COLUMN=N7,
WRAP=8.000000,
$
ENDSTYLE
END
-RUN
SET HTMLFORMTYPE= XLS
-HTMLFORM BEGIN
<html>
<body>
<table dir="rtl" align="right">
<tr>
<td>
!IBI.FIL.AAA;
</td>
</tr>
</table>
</body>
</html>
-HTMLFORM END
This message has been edited. Last edited by: shmulik,
You are generating an HTML report with grid lines and then dropping that report into Excel. So I doubt there is a way to create grid lines for the remaining empty cells in the spreadsheet with this method, except maybe with an Excel template.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Not very elegant, but here's one possible solution:
TABLE FILE CAR
SUM
COMPUTE HEADING1/A50 = 'SALES REPORT FOR COUNTRY ' | COUNTRY; NOPRINT
COMPUTE DUMMY1/A1 = ''; NOPRINT
DEALER_COST
RETAIL_COST
SALES
BY COUNTRY NOPRINT
BY SEATS
HEADING
"<HEADING1 <DUMMY1 <DUMMY1 <DUMMY1"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD FORMAT HTMTABLE AS AAA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
$
TYPE=REPORT,
GRID=ON,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
$
TYPE=HEADING, HEADALIGN=BODY,
JUSTIFY=CENTER,
$
TYPE=REPORT,
COLUMN=N6,
WRAP=8.000000,
$
TYPE=REPORT,
COLUMN=N7,
WRAP=8.000000,
$
ENDSTYLE
END
-RUN
SET HTMLFORMTYPE= XLS
-HTMLFORM BEGIN
<html>
<body>
<table dir="rtl" align="right">
<tr>
<td>
!IBI.FIL.AAA;
</td>
</tr>
</table>
</body>
</html>
-HTMLFORM END
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
On the hand, I don't think this solves your problem. You want Excel borders to appear on ALL cells, including those that are empty, non-report cells? As Dan states, I don't think this is possible without using an Excel template.
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