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     When exporting to Excel, can the heading be frozen?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
When exporting to Excel, can the heading be frozen?
 Login/Join
 
Gold member
posted
It is possible after opening the excel file that the header lines can be frozen, but is there a way to make this so without intervention by the viewer?
Laure
 
Posts: 78 | Location: Florida | Registered: December 07, 2006Report This Post
Expert
posted Hide Post
laure, that is an excel feature, not a webfocus feature, so you're going to have to write a macro in excel. If you're populating a template, you can make your macro part of the host. but you need an excel forum for more help on that.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
That's what I thought. But we're not exporting to a template so I was hoping someone had already worked out how to format the excel worksheet when it opens at export time.


Laure


Prod: WebFOCUS 7.7.03 - MRE, BID, - WindowsXP - Oracle 9i, SQLServer, DevStudio 7.7.3 - Apache Tomcat , Output: HTML, Excel 2013 and PDF
 
Posts: 78 | Location: Florida | Registered: December 07, 2006Report This Post
Expert
posted Hide Post
Laure, edit your profile to tell us what your system is, would you?; If you've can populate your spreadsheets with a webquery, then you can set up your sheet 1 time, including formatting and freezing headers, and then refresh the data by using excel's own 'Refresh Data' .
If you're using IE, and have built a SelfServ site (not using servlet but using isapi (webapi.dll)), then you can build a webquery with just a right click export to excel..and let IE build the webquery for you. If not, then you have to build it yourself...its in the manual...not hard. Might be a solution for you, or might be more than you really wanted to know Wink




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
quote:
Originally posted by Laure:
It is possible after opening the excel file that the header lines can be frozen, but is there a way to make this so without intervention by the viewer?
Laure


Hallo Laure,

How did you solve your problem.

Cheers Richard
 
Posts: 8 | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Sorry to say that we didn't. Frowner


Laure


Prod: WebFOCUS 7.7.03 - MRE, BID, - WindowsXP - Oracle 9i, SQLServer, DevStudio 7.7.3 - Apache Tomcat , Output: HTML, Excel 2013 and PDF
 
Posts: 78 | Location: Florida | Registered: December 07, 2006Report This Post
Expert
posted Hide Post
Hi Laure and all,

FYI, this is a New Feature Request, and here is a technique documented:

SET EMPTYREPORT=ON
SET HTMLCSS=ON
-* THIS GENERATES TITLES
TABLE FILE CAR
"THIS IS TITLE OF REPORT"
SUM DCOST AS 'Dealer Cost'
    RCOST AS 'Retail Cost'
   SALES AS 'Sales'
BY COUNTRY AS 'Country'
WHERE COUNTRY EQ 'USA'
BY CAR AS 'Car'
ON TABLE HOLD AS GARR1 FORMAT HTML
ON TABLE SET PAGE OFF
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF, $
TYPE=REPORT, COLUMN=N1, WRAP=1, $
TYPE=REPORT, COLUMN=N2, WRAP=.95, $
TYPE=REPORT, COLUMN=N3, WRAP=.5, $
TYPE=REPORT, COLUMN=N4, WRAP=.5, $
TYPE=REPORT, COLUMN=N5, WRAP=.5, $
TYPE=TITLE,COLOR=BLUE,STYLE=-UNDERLINE,$
ENDSTYLE
END

-* THIS GENERATES DATA
TABLE FILE CAR
PRINT DCOST AS ''
RCOST AS ''
SALES AS ''
BY COUNTRY AS ''
BY CAR AS ''
ON TABLE HOLD AS GARR2 FORMAT EXL2K
ON TABLE SET PAGE OFF
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<html>
<style <type="text/css">
DIV.datscrol2{
    position:absolute; top: 120px; left: 10px; height: 300px;
    width: 750px; overflow: scroll; background-color: white;
    border: ridge firebrick 1px
}
</style>
<body>
!IBI.FIL.GARR1;
<DIV CLASS=datscrol2>
!IBI.FIL.GARR2;
</DIV>
</body>
</html>
-HTMLFORM END


Hope this helps. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Gold member
posted Hide Post
Kerry,
I tried this. The output is HTML window without Excel features. I simply cut your code and place in .fex and executed.

I'm really looking to set the Excel freeze bar after the headings and have the grid functionality of Excel, sorting, filtering etc.

Any suggestions?


Laure


Prod: WebFOCUS 7.7.03 - MRE, BID, - WindowsXP - Oracle 9i, SQLServer, DevStudio 7.7.3 - Apache Tomcat , Output: HTML, Excel 2013 and PDF
 
Posts: 78 | Location: Florida | Registered: December 07, 2006Report This Post
Master
posted Hide Post
Laure,

You may also consider upgrading to Excel 2003. There are a lot of things available but you have to have Excel 2002 or higher.

Another option is to add Active Reports to your installation. I like to refer to it as Excel on steroids. It has the ability to set filters, freeze panes, etc. I'm still trying to convince management to get it.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Gold member
posted Hide Post
When your output format is Excel you can omit the Heading (and Footing) entirely with a DM statement:
-IF &FMT EQ 'EXL2K' GOTO NOHEADER;
HEADER
"Report Header"
-NOHEADER

If you need to retain the Header information a more complicated solution would be to place the main report on one worksheet and move the heading to a second worksheet using Compound report functionality.


WF 7703M, XP/Win7, MRE, RC, BID, PMF, HTML, PDF, Excel 2000/7/10
 
Posts: 73 | Location: NY | Registered: February 06, 2007Report 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     When exporting to Excel, can the heading be frozen?

Copyright © 1996-2020 Information Builders