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     [CLOSED] Excel Templates xlsx

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Excel Templates xlsx
 Login/Join
 
Platinum Member
posted
Hello,

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 help

This 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
 
Posts: 121 | Registered: November 17, 2005Report This Post
Platinum Member
posted Hide Post
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, 2004Report This Post
Platinum Member
posted Hide Post
Thanks Cyril,

where do I save the MYTEMPLATE.xlsm? On the server?

I saved it on the server and tried running what you gave me. I received the following error:

(FOC3289) Template File: Error Opening File
(FOC009) Incomplete request statement
BYPASSING TO END OF COMMAND


Prod: WebFOCUS 8.2.0.4
OS: Windows
Outputs: HTML, PDF, Excel, PPT
In Focus since 2005
 
Posts: 121 | Registered: November 17, 2005Report This Post
Platinum Member
posted Hide Post
Yes, Save it in the same folder where you have the fex.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Platinum Member
posted Hide Post
Also save the file as mytemplate.xlsm (All small case)


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Platinum Member
posted Hide Post
Thanks Cyril,

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
 
Posts: 121 | Registered: November 17, 2005Report This Post
Platinum Member
posted Hide Post
Hope you have three sheets in the saved template.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Platinum Member
posted Hide Post
For the above example, 4 sheets in template.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Gold member
posted Hide Post
If you are using EXL07, try adding the following to the beginning of your fex:

 
SET EXCELSERVURL = '' 


WebFOCUS 8
 
Posts: 74 | Location: Gahanna, OH | Registered: September 22, 2009Report This Post
Guru
posted Hide Post
Hi KellyT,

It works for me. I got MS Office 2013.

 FILEDEF CARTEST DISK hello.xltx
-RUN
TABLE FILE CAR
PRINT MODEL
BY CAR
ON TABLE PCHOLD AS CARTEST FORMAT EXL07/XLSX TEMPLATE hello SHEETNUMBER 1
END 


When you're uploading templates to the server, atleast one of the sheets must contain a cell with a valid value (blank or any other value).


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Guru
posted Hide Post
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, 2013Report This Post
Platinum Member
posted Hide Post
The replies did help for me to find my solution.


Prod: WebFOCUS 8.2.0.4
OS: Windows
Outputs: HTML, PDF, Excel, PPT
In Focus since 2005
 
Posts: 121 | Registered: November 17, 2005Report 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     [CLOSED] Excel Templates xlsx

Copyright © 1996-2020 Information Builders