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] Need help in Styling - Excel and HTML style is working differently

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Need help in Styling - Excel and HTML style is working differently
 Login/Join
 
Member
posted
Hi All,

I need the below HTML output in XLSX format. Can anyone help me on this?


HTML Code:

TABLE FILE CAR
PRINT COUNTRY CAR MODEL BODYTYPE SEATS
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=CAR,WIDTH=5.50,WRAP=5.50,$
TYPE=DATA, FONT='ARIAL', SIZE=10, BACKCOLOR=('WHITE' RGB(221 235 247)), COLOR=BLACK,BORDER=LIGHT,$
TYPE=DATA,WHEN= MODEL EQ 'DORA 2 DOOR',STYLE=BOLD,BACKCOLOR=RGB(155 194 230),COLOR=BLACK,$
ENDSTYLE
END
-EXIT

XLSX Code:

TABLE FILE CAR
PRINT COUNTRY CAR MODEL BODYTYPE SEATS
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT XSLX
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=CAR,WIDTH=5.50,WRAP=5.50,$
TYPE=DATA, FONT='ARIAL', SIZE=10, BACKCOLOR=('WHITE' RGB(221 235 247)), COLOR=BLACK,BORDER=LIGHT,$
TYPE=DATA,WHEN= MODEL EQ 'DORA 2 DOOR',STYLE=BOLD,BACKCOLOR=RGB(155 194 230),COLOR=BLACK,$
ENDSTYLE
END
-EXIT

Thanks,
Yeshwanth

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.7.3
Windows, All Outputs
 
Posts: 11 | Registered: September 01, 2015Report This Post
Virtuoso
posted Hide Post
quote:
TYPE=DATA,COLUMN=CAR,WIDTH=5.50,WRAP=5.50,$


To apply such styling in Excel, you need to add a Macro to your Excel or have your report produced from a Template.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Member
posted Hide Post
Hi All,

I was able achieve it with workaround below.

TABLE FILE CAR
PRINT COUNTRY CAR MODEL BODYTYPE SEATS
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT XLSX
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA, BACKCOLOR=('WHITE' RGB(221 235 247)),$
TYPE=REPORT,COLUMN=P2,WIDTH=5.50,WRAP=5.50, $
TYPE=DATA,WHEN= MODEL EQ 'DORA 2 DOOR',STYLE=BOLD,BACKCOLOR=RGB(155 194 230),$
TYPE=DATA,COLUMN=P2,STYLE=BOLD,BACKCOLOR=RGB(155 194 230),WHEN= MODEL EQ 'DORA 2 DOOR',$
ENDSTYLE
END
-EXIT

Thanks,
Yeshwanth


WebFOCUS 7.7.3
Windows, All Outputs
 
Posts: 11 | Registered: September 01, 2015Report 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] Need help in Styling - Excel and HTML style is working differently

Copyright © 1996-2020 Information Builders