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.
Does anyone have a basic example of an excel template 2007 and how I access it with Dev studio using the Car file?
I am on dev version 8005.
I had created a basic .fex using an older example I found but I"m getting the error "(FOC3289) TEMPLATE FILE: Error Opening File. (FOC3317) Failed to unzip EXL07 template file.
Thanks for your helpThis message has been edited. Last edited by: <Kathryn Henning>,
Prod: WebFOCUS 8.2.0.4 OS: Windows Outputs: HTML, PDF, Excel, PPT In Focus since 2005
Below is sample code. You have to use a template with 'xlsm' extension. In the example mytemplate.xlsm.
SET BYDISPLAY = ON
SET PAGE = NOLEAD
FILEDEF TEMPMHT1 DISK tempmht1.mht
FILEDEF TEMPMHT2 DISK tempmht2.mht
TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE HOLD AS TEMPMHT1 FORMAT EXL2K TEMPLATE MYTEMPLATE SHEETNUMBER 2
ON TABLE SET STYLE *
SIZE=9, $
ENDSTYLE
END
TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE HOLD AS TEMPMHT2 FORMAT EXL2K TEMPLATE TEMPMHT1 SHEETNUMBER 3
ON TABLE SET STYLE *
SIZE=9, $
ENDSTYLE
END
TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE PCHOLD AS FINALXLS FORMAT EXL2K TEMPLATE TEMPMHT2 SHEETNUMBER 4
ON TABLE SET STYLE *
SIZE=9, $
ENDSTYLE
END
-RUN
Regards, Cyril Joy.
WF Production 8008 on Linux.
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004
i'm still unable to get it to open the spreadsheet. It is giving me the same error.
I have the mytemplate.xlsm in the smae folder.
SET BYDISPLAY = ON SET PAGE = NOLEAD FILEDEF TEMPMHT1 DISK tempmht1.mht FILEDEF TEMPMHT2 DISK tempmht2.mht TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL ON TABLE HOLD AS TEMPMHT1 FORMAT EXL2K TEMPLATE MYTEMPLATE SHEETNUMBER 2 ON TABLE SET STYLE * SIZE=9, $ ENDSTYLE END TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL ON TABLE HOLD AS TEMPMHT2 FORMAT EXL2K TEMPLATE TEMPMHT1 SHEETNUMBER 3 ON TABLE SET STYLE * SIZE=9, $ ENDSTYLE END TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL ON TABLE PCHOLD AS FINALXLS FORMAT EXL2K TEMPLATE TEMPMHT2 SHEETNUMBER 4 ON TABLE SET STYLE * SIZE=9, $ ENDSTYLE END -RUN
Prod: WebFOCUS 8.2.0.4 OS: Windows Outputs: HTML, PDF, Excel, PPT In Focus since 2005
Created a template(zzzz.xltx) with 4 sheets and saved it to the server.
TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE HOLD AS temp1 FORMAT EXL07 TEMPLATE zzzz SHEETNUMBER 1
ON TABLE SET STYLE *
SIZE=9, $
ENDSTYLE
END
-RUN
TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE HOLD AS temp2 FORMAT EXL07 TEMPLATE temp1.xlsx SHEETNUMBER 2
ON TABLE SET STYLE *
SIZE=9, $
ENDSTYLE
END
-RUN
TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE HOLD AS temp3 FORMAT EXL07 TEMPLATE temp2.xlsx SHEETNUMBER 3
ON TABLE SET STYLE *
SIZE=9, $
ENDSTYLE
END
-RUN
TABLE FILE MOVIES
PRINT *
WHERE RECORDLIMIT EQ 1
ON TABLE PCHOLD AS FINAL FORMAT EXL07 TEMPLATE temp3.xlsx SHEETNUMBER 4
END
? FILEDEF
-EXIT
Note, here, I'm referring to the workbook(.xlsx) not the templates(.xltx) and it works. But, if i refer as .xltx & there is an issue in opening.
Is that the correct behaviour in EXL07?
-Rifaz
WebFOCUS 7.7.x and 8.x
Posts: 406 | Location: India | Registered: June 13, 2013