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.
If you have Excel installed on your server then you can dynamically create a Visual Basic script which will open the .xht formatted file and properly save it (overwrite it) as .xls format. There are many great examples of this code in the forums.
Put this code into your fex or, as I've done, put it into a separate fex that can be called by multiple procedures:
-DEFAULT &FILENAME_IN = 'd:\ibi\apps\domain\report.xls';
FILEDEF VBScript DISK [filename and path to script file, e.g. D:\ibi\apps\common\ConvertExcel.VBS]
-RUN
-*
-WRITE VBScript Main
-WRITE VBScript Sub Main
-WRITE VBScript On Error Resume Next
-WRITE VBScript Dim ojbExcel
-WRITE VBScript Dim objBook
-WRITE VBScript Dim objFSO
-WRITE VBScript Wscript.Echo "The process has started"
-WRITE VBScript set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
-WRITE VBScript const xlNormal = 1
-WRITE VBScript Set objExcel = CreateObject("Excel.Application")
-WRITE VBScript if Err.Number <> 0 then
-WRITE VBScript ' msgbox "Excel application not installed"
-WRITE VBScript Wscript.Echo "Excel application not installed."
-WRITE VBScript Wscript.Quit
-WRITE VBScript end if
-WRITE VBScript Wscript.Echo "opening file: " & "&FILENAME_IN.EVAL"
-WRITE VBScript Set objBook = objExcel.Workbooks.Open("&FILENAME_IN.EVAL")
-WRITE VBScript Wscript.Echo "FILE: " & objBook.FullName
-WRITE VBScript If objFSO.FileExists(objBook) Then
-WRITE VBScript objExcel.DisplayAlerts = False
-WRITE VBScript objExcel.ActiveWorkbook.SaveAs objBook.FullName, xlNormal
-WRITE VBScript objExcel.DisplayAlerts = True
-WRITE VBScript objBook.Close
-WRITE VBScript ELSE
-WRITE VBScript Wscript.Echo "FILE does not exist: " & objBook.FullName
-WRITE VBScript End If
-WRITE VBScript objExcel.Quit
-WRITE VBScript Set objBook = Nothing
-WRITE VBScript Set objExcel = Nothing
-WRITE VBScript Set objFSO = Nothing
-WRITE VBScript End Sub
-RUN
-* Open file in MS Eggshell on the server to regain white space !!
-DOS CSCRIPT.EXE [filename and path to script file, e.g. D:\ibi\apps\common\ConvertExcel.VBS]
-RUN
If you go into your administration console and look at your redirect settings, you can adjust the way that the .XHT saves. I have both my redirect and save report set to yes.
There is also some information on this in the helpful if you search under redirection.
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013