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.
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?
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, 2005
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?
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, 2005
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, 2006
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.