Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cognos Impromptu WIth VB by giving them prompts value

Status
Not open for further replies.

JatinKhurana

Technical User
Mar 7, 2013
1
Hello,

I have read a thread that was about running the Impromptu with VB script. That really helped me but I want to open a report by giving them Prompt values using VB script.
 
So, what are you having problems with and what's your code so far?
CognosScript is very similar to VB script, so you should be OK, as Impromptu is an addressable application, and the prompts should be passed as strings, using a pipe as a delimiter

Passing year (2013) and month (3) to a report using CognosScript, a code fragment:
Code:
   Dim objImpApp As Object
   Dim objImpRep As Object
   '
   Set objImpApp = CreateObject("CognosImpromptu.Application")
   objImpApp.Visible 1
   objImpApp.OpenCatalog "E:\catalogues\Acme.cat","Creator",,,,1
   Set objImpRep = objImpapp.OpenReport("E:\Reports\AcmeSales.imr","2013|3")

soi là, soi carré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top