Impromptu reports with .Net
Posted on 2004-04-23
Title: Impromptu reports with .Net
I am having trouble launching Impromptu reports. I have an ASP.Net web application and Impromptu version 6.
When the process.start line is executed, nothing happens. In debug, there is a beep. Impromptu does not launch. If I double-click the vbs file in windows the macro runs just fine.
I have tried simply: process.start("Notepad.exe"). Notepad appears in the task manager but does not open a window.
Any idea what I'm missing?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myproc As System.Diagnostics.Process
myproc = New System.Diagnostics.Process()
myproc.EnableRaisingEvents = False
Catch err As Exception
.vbs file: (this same code works fine as a macro with Impromptu open)
Set ImpAppObject = CreateObject("CognosImpromptu.Application")
Set ImpRepObject = ImpAppObject.Openreport(Filename)