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.
Hello Vinay, when you save the EXL2K File as an *.mht you can chose in the save as properties "whole work folder" or Range "table". i think you have chosen Range "table". I had the same problem some days ago!!
Christian
WF Production Version: 7.7.02M WF Test Version: 7.7.02M Developer Studio: 7.7.02 HTML, EXL2K, FLEX, PDF,PPT
TABLE FILE File1
PRINT Field1
ON TABLE HOLD AS OUTPUT1 FORMAT EXL2K OPEN
ON TABLE SET STYLE
TYPE=REPORT, TITLETEXT='REPORT 1', $
TYPE=HEADING, SIZE=18, $
ENDSTYLE
END
TABLE FILE File2
PRINT Field2
ON TABLE HOLD AS OUTPUT1 FORMAT EXL2K CLOSE
ON TABLE SET STYLE
TYPE=REPORT, TITLETEXT='REPORT 2', $
TYPE=HEADING, SIZE=18, $
ENDSTYLE
END
FIN
WebFOCUS 7.6.4, Mainframe Focus Windows XP, All Output Formats
I recently used Excel Templates and ran into the same error.
N.Selph is correct, you need two worksheets. One where the data (produced by WebFOCUS/FOCUS)will be loaded. The other worksheet will be the formatted end-result that you want the user to see.
On the "formatted" worksheet include some content. Column headers, alternate row colors, etc. Also you will need to reference the cells of the data sheet on the formatted sheet. Something like =Data!A14
Hope this helps.
WebFOCUS 7.6.11 Developer Studio on Windows XP. Server Components running on Windows Server 2003. Excel, HTML, PDF
FYI, info from our internals: The code you are running on the mainframe should also work from WebFOCUS. The ON TABLE SET STYLE needs an ‘*’ after it and I would also change the HOLD to PCHOLD to display the output.
All the comments about having an Excel workbook with 2 sheets with contents is absolutely correct when using Excel Templates. I believe this case is strictly a 2 worksheet compound document and should not need templates.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004
From our internals: This is not an Excel TEMPLATE issue, so don’t worry about the comments regarding the requirements of using Excel Templates until you plan to go that direction.
This code will give you want you are looking for – an excel workbook with 2 worksheets called Report 1 and Report 2.
TABLE FILE CAR
PRINT COUNTRY
ON TABLE PCHOLD AS OUTPUT1 FORMAT EXL2K OPEN
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='REPORT 1', $
TYPE=HEADING, SIZE=18, $
ENDSTYLE
END
TABLE FILE EMPDATA
PRINT PIN
ON TABLE PCHOLD AS OUTPUT1 FORMAT EXL2K CLOSE
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='REPORT 2', $
TYPE=HEADING, SIZE=18, $
ENDSTYLE
END
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004
Hi Vinay, TABLE FILE CAR PRINT * COMPUTE LINENUM/I9 = LINENUM + 1; ON TABLE SET ASNAMES ON AND HOLDLIST PRINTONLY ON TABLE HOLD AS HDFNL END -RUN -SET &LINES_C = &LINES; -SET &MAXROWS=65000;
-SET &CMPND = IF &LINES_C EQ 0 THEN 'CLOSE' ELSE 'OPEN'; -SET &LOOPNUM = IF &LINES_C GT &MAXROWS THEN 2 ELSE 1; -REPEAT ENDAIR FOR &CT FROM 1 TO &LOOPNUM -SET &STDWHERE = IF &CT EQ &LOOPNUM AND &LOOPNUM NE 1 THEN 'WHERE LINENUM GT &MAXROWS.EVAL' ELSE 'WHERE LINENUM LE &MAXROWS.EVAL'; -SET &SHEETNAME = IF &CT EQ &LOOPNUM AND &LOOPNUM NE 1 THEN 'SHEET 2' ELSE 'SHEET 1'; -SET &CMPND = IF &CT NE &LOOPNUM THEN 'OPEN' -ELSE IF &CT EQ &LOOPNUM AND &CMPND EQ 'CLOSE' THEN 'CLOSE' -ELSE 'OPEN'; SET COMPOUND = &CMPND.EVAL TABLE FILE HDFNL PRINT * BY LINENUM NOPRINT &STDWHERE.EVAL ON TABLE SET ONLINE-FMT EXL2K ON TABLE SET STYLE * TYPE=REPORT, FONT=ARIAL, SIZE=8, TITLETEXT='&SHEETNAME.EVAL',$ TYPE=TITLE, STYLE=BOLD, JUSTIFY=CENTER,$ TYPE=DATA, COLUMN=STMT_DT, JUSTIFY=RIGHT,$ TYPE=DATA, COLUMN=TRANS_DT, JUSTIFY=RIGHT,$ TYPE=DATA, COLUMN=TKT_ISS_DT1, JUSTIFY=RIGHT,$ TYPE=DATA, COLUMN=TRAV_DPRT_DT, JUSTIFY=RIGHT,$ ENDSTYLE END -RUN -ENDAIR
The contents in the 2 worksheets don't need to be anything more than a label like "Data will go here" in cell A1 in one sheet, and " " (space) in cell A1 in a second sheet.