JerryKlmns
IS-IT--Management
I 'm trying to automate an Impromptu (ver 7.3) imr to be saved as a ASCII file, through VB6. But I would like the user to input their log on UserClassID & UserClassPassword at the form that impromptu uses. Not using a form of mine! Like prompting for a connection.
The rest is ready
Also, is there a nice lib that would give me the nice Intellisense for early binding help?
The rest is ready
Code:
Sub ExportMissingCIDs()
On Error GoTo Err_Impromptu
Dim objImpromptu As Object
Dim objReport As Object
Dim TheServer As String
Const TheCatalog As String = "xxx"
Const TheReport As String = "xxx"
Const TheExportFile As String = "xxx"
Set objImpromptu = CreateObject("CognosImpromptu.Application")
objImpromptu.Visible -1
[green]'objImpromptu.OpenCatalog TheServer & TheCatalog, TheUserClassID, TheUserClassPassword, TheDatabaseID, TheDatabasePassword, True [/green][b]<-- I dont want to do it this way. I want to show the logon screen[/b]
Set objReport = objImpromptu.OpenReport(TheReport, myTotalList)
objReport.RetrieveAll
objReport.ExportASCII "L:\CallCenter\Data\NewCIDs.txt" ', "x_ascii.flt"
objReport.CloseReport
objImpromptu.Quit
Exit_Impromptu:
Set objReport = Nothing
Set objImpromptu = Nothing
Exit Sub
Err_Impromptu:
MsgBox Err.Number & ": " & Err.Description
Resume Exit_Impromptu
End Sub
Also, is there a nice lib that would give me the nice Intellisense for early binding help?