'Open Impromptu
Set objApp = CreateObject("CognosImpromptu.Application")
trueName = path & fileName & ".imr"
Set objRep = objApp.OpenReport(trueName)
strExcelFileName = path & fileName
'Save As Excel
objRep.ExportExcel strExcelFileName & ".xls"
objRep.CloseReport
objApp.Quit
Set objApp = Nothing
Set objRep = Nothing
Couple of warnings:
* This is for 7.1!
* make a variable "path" and "filename" and give them the appropriate values
* there is a difference when you save it WITH format. See the CognosScript Editor Help for that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.