This macro saves the active report as an Excel file. Create a macro in CognosScript Editor and schedule it to run in Scheduler. You may want to modify this macro to open a specified report instead of relying on the active report to be correct.
Sub Main()
Dim objImpApp As Object
Dim objImpRep As Object
Dim strExcelFileName As String
Set objImpApp = CreateObject("CognosImpromptu.Application"
Set objImpRep = objImpApp.ActiveDocument
strExcelFileName = Left$(objImpRep.FullName, Len _
(objImpRep.FullName) - 4)
objImpRep.ExportExcel strExcelFileName & ".xls"
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub
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.