I was searching a previous thread and found that we have to use vbscript to save the exl2k resulting file as excel file and then send it to blackberry. I have tried that and it is not working for me..? Anyone has any suggestion..?
I have tried microsoft suggestion of creating registry enrtries
HKEY_USERS.DEFAULTSoftwareMicrosoftWindows Script Host
HKEY_USERS.DEFAULTSoftwareMicrosoftWindows Script HostSettings
and making sure user has read permissions but no luck.
Here is the error I get.
--------------------------------------------------------------------------------
No HTML Output!
--------------------------------------------------------------------------------
CScript Error: Loading your settings failed. (Access is denied. )
0 NUMBER OF RECORDS IN TABLE= 5 LINES= 5
0 EXL2K FILE SAVED ...
My Fex..,
FILEDEF REP1 DISK C:\TEMP\REP1.XLS
CMD CSCRIPT.EXE app/saveasxl.vbs
TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD AS REP1 FORMAT EXL2K
END
The code in the saveasxl.vbs is the following,
' WebFocus saves an Excel spread sheet
' as a Excel Format Type Html
' This causes a problem when the xls file
' is opened by DTS.
' This scripts opens the xls file then
' saves it as FormatType xls
' LVW - 09/28/03
Dim WshShell
Dim CmdArgs
Dim Inputfile
Dim Outputfile
Dim xlApp
Dim xlBook
Dim xlSheet
set WshShell= WScript.CreateObject( "WScript.Shell" )
Set CmdArgs = WScript.Arguments
Inputfile = CmdArgs(0)
Outputfile = CmdArgs(1)
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Workbooks.Open(Inputfile)
xlbook.SaveAs Outputfile , 1
xlApp.Quit
Set xlSheet = Nothing
Set xlBook = Nothing
Set xlApp = Nothing
App Studio Version 8202
windows Platform
SQL Server 2008/2012