Hi,
As my company is upgrading cognos impromptu from version 5 to 6, I am tasked to test the application. The application contains macros which run perfectly in administrator version but not in user version. I think the problem lies due to lack of a OpenCatalog. If I run the macro below with the administrator version, it'll prompt me for the access group and password before proceeding to the OpenReport statement, and this works fine. But if I run this with the user version, it doesn't prompt me and I'll hit an error at the OpenReport statement. Due to security reasons, I cannot encode password in the OpenCatalog statement in the macros. Please help me. Thanks.
Sub Main()
Dim objImpApp as Object
Dim objImpRep as Object
Set objImpApp = CreateObject("CognosImpromptu.Application"
Set objImpRep = objImpApp.OpenReport("c:\cognos\imp30\report11.imr"
objImpRep.RetrieveAll
objImpRep.ExportASCII("c:\abc.csv"
objImpRep.CloseReport
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub
As my company is upgrading cognos impromptu from version 5 to 6, I am tasked to test the application. The application contains macros which run perfectly in administrator version but not in user version. I think the problem lies due to lack of a OpenCatalog. If I run the macro below with the administrator version, it'll prompt me for the access group and password before proceeding to the OpenReport statement, and this works fine. But if I run this with the user version, it doesn't prompt me and I'll hit an error at the OpenReport statement. Due to security reasons, I cannot encode password in the OpenCatalog statement in the macros. Please help me. Thanks.
Sub Main()
Dim objImpApp as Object
Dim objImpRep as Object
Set objImpApp = CreateObject("CognosImpromptu.Application"
Set objImpRep = objImpApp.OpenReport("c:\cognos\imp30\report11.imr"
objImpRep.RetrieveAll
objImpRep.ExportASCII("c:\abc.csv"
objImpRep.CloseReport
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub