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     Excel Template Problems

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Excel Template Problems
 Login/Join
 
Platinum Member
posted
I'm trying to create a multiple worksheet EXL2K output, with no gridlines. Based on what I've been reading here in the forum threads, the solution is to create a MHT file in Excel (with the gridlines turned off), and then upload it to the APP path for use by the report.

I found the code below in a thread here in the forum for use with multiple worksheet excel template output.

FILEDEF soctemplate DISK soctemplate.mht
-RUN
TABLE FILE CAR
PRINT CAR MODEL
ON TABLE HOLD AS soctemplate FORMAT EXL2K TEMPLATE TEST1 SHEETNUMBER 1
END
TABLE FILE CAR
PRINT MODEL CAR
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE soctemplate SHEETNUMBER 2
END


My problems are that:
1. Only the second file outputs, to the second worksheet.
2. When the second worksheet outputs, the report adds the gridlines back into the report output.

Can anyone suggest a solution that solves both of these problems?

Thank you.


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Virtuoso
posted Hide Post
1. In your TEST1.mht file, are both sheets populated (i.e., at least one cell in each target sheet has a stored value)?

2. The report will obliterate any existing formatting in the target sheet(s). So the burden of sheet formatting is on the fex's TABLE /STYLE code. If you cannot get that to produce what you want (e.g., tp specify vertical alignment within cell), the only solution I know of is VBA macros in the template, to adjust the content when the book is first opened.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
I've placed an "X" cell A1 of both of the worksheets in the template. The current code is pulling from CAR, so there is definately data for both results.

If I can't remove the excel gridlines from WF code for an entire worksheet, and if I set up a template with no gridlines, but WF overwrites that template formatting when data is output, what is the point of using a template?


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Gold member
posted Hide Post
Thought ... can you change the backcolor to white? That will "remove" the grid lines around the data.


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
Virtuoso
posted Hide Post
quote:
...what is the point of using a template?


To imbue the resultant workbook with data / formulae / macro code that will not be disturbed by WF when it inserts data in specified worksheets.

A typical case is a template that contains a visible "report" sheet plus one or more hidden "data" sheets -- the latter to be populated by the WebFocus report. The report sheet's formats and cell values / formulae are created under the aegis of Excel and come along for the ride in WF's template processing.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
I use templates with an embedded auto open macro to do extensive formatting that is not available in WebFOCUS and to do common things like:
1. Turn filters on
2. Page layout for printing
3. Add excel subtotals so that when the user filters the data, the spreadsheet recomputes based on the filtered data
4. Adjust row height
5. Hide columns
6. Turn off grid lines

These are not available in WebFOCUS but with auto-open macros, there's almost no limit as to what one can do.


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
Platinum Member
posted Hide Post
WebFOCUS does appear to add the white background in the excel cells that are occupied by the report, but I want the entire worksheet to have the white backgdound with no gridlines.

I'm hesitant to include macros in the reports that I'm giving my customers. I'm not sure I can trust them to ignore their existance in the workbook.

I can manually format the reports myself outside of WebFOCUS, I was just hoping for a less manual solution.


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 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     Excel Template Problems

Copyright © 1996-2020 Information Builders