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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Impromptu - ASP - ActiveX - Can't create Object CognosImpromptu.Applic

Status
Not open for further replies.

jdrulez

Programmer
Jan 16, 2003
3
FR
Hi !

I read a couple of articles without finding the solution ...
I'm running a report from an ASP page :

Sub Command1_Click()
Dim objImpApp
Dim objImpCat
Dim objDB
Dim Mois
Dim Annee
Dim Parameters

Mois = Month(debut)
Annee = Year(fin)
Parameters = Mois &"|"&Annee

Set objImpApp = CreateObject("CognosImpromptu.Application")
objImpApp.Visible 1
objImpApp.OpenCatalog "\\Virg\e-novacances.dev\dev\view\Impromptu\prod.cat","Auteur","", "nova","nf", 1
Set objImpCat = objImpApp.ActiveCatalog
Set objImpRep = objImpApp.OpenReport("\\Virg\e-novacances.dev\dev\view\Impromptu\absence" & ".imr",Parameters)
Set objImpCat = Nothing
Set objImpApp = Nothing
End Sub

This works fine if I visualize my asp page in Visual Interdev !
But If I use Internet Explorer, I have the error :
An activeX component can't create the object "CognosImpromptu.Application"

Any idea ?
 
Hi,

Use "CognosImpromptu.Application" if you use release 5 of Impromptu, else "Impromptu.Application" for releases 6 and 7.

Hope this help.

Graham.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top