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     [SOLVED] Opening Excel hold file.... from a HTML page or Fex file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Opening Excel hold file.... from a HTML page or Fex file
 Login/Join
 
Member
posted
Hi,

I have generated an hold file and saved in excel format(In others folder). I want to call this excel file from fex file or html file.

I have used
-HTMLFORM
Its giving the report in HTML format.

But the same thing if i call PDF file, i am able to open the PDF report.

This message has been edited. Last edited by: FP Mod Chuck,


Webfocus 7.1.4
 
Posts: 2 | Registered: May 23, 2008Report This Post
Member
posted Hide Post
I HAVE GENERATED EXCEL FILE USING THE BELOW CODE..

TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
WHERE RECORDLIMIT EQ 10
ON TABLE HOLD AS SAI_EXL1 FORMAT EXCEL
END

THE EXCEL FILE NAME SAI_EXL1.XLS IS SAVED UNDER OTHER FOLDER.

NOW I WANT TO OPEN THIS SAI_EXL1.XLS FROM A FEX FILE.
PLEASE LET ME KNOW HOW THIS CAN BE DONE.


Webfocus 7.1.4
 
Posts: 2 | Registered: May 23, 2008Report This Post
Virtuoso
posted Hide Post
Sai,
Try this in your focexec:
  
!"C:\Program Files\Microsoft Office\Office12\excel" C:\path_where_xl_saved\SAI_EXL1.XLS 

C:\Program Files\Microsoft Office\Office12 is usually where Excel is installed


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
This is another way, the location of Excel is not required:

<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=/approot/temp/book1.xls">
</head>
</html>


In IE, the Excel file opens in the IE window. In Firefox, the file is downloaded and then opened in Excel.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
To use -HTMLFORM you must specify the type and location.

FILEDEF SAI_EXL1 DISK OTHERS/sai_exl1.xht
SET HTMLFORMTYPE = XLS
-HTMLFORM SAI_EXL1


If you created the XLS in the same fex, you may not need the FILEDEF.
If the xls is not in an APP directory, the FILEDEF will need to change to a path.
Check the extension of the xls file, is it xls or xht.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
I keep getting a 404 resource not found error. Is there anyone who can help?
<html>
<head>
<meta http-equiv="refresh" content="0; url=baseapp/cat_work_data.xlsx">
</head>
</html>
  


WebFOCUS 8203

Windows, All Outputs
 
Posts: 7 | Registered: April 19, 2018Report This Post
Virtuoso
posted Hide Post
Dmoses

Try this....

CONTENT="2; URL=/approot/baseapp/cat_work_data.xlsx">


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Expert
posted Hide Post
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=/approot/baseapp/Book1.xls">
</head>
</html>

This does still work after ten years. As Chuck mentioned, approot must be specified. The 2 in the CONTENT attribute means refresh after 2 seconds.

Also important is that the file must be on the web server (if it is different than the reporting server.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 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     [SOLVED] Opening Excel hold file.... from a HTML page or Fex file

Copyright © 1996-2020 Information Builders