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!

error code 1003 - macro

Status
Not open for further replies.

lin28

IS-IT--Management
Jan 7, 2005
12
US

I have just started working with Cognos.
When I try to run a macro in order to export a report to excel document I get the following error message:
Error 103 ERROR exception not handled by program.
I use a basic macro.
Sub Main()
Dim objImpApp As Object
Dim objImpRep As Object
Dim strExcelFileName As String
Set objImpApp = CreateObject("CognosImpromptu.Application")
Set objImpRep = objImpApp.ActiveDocument
strExcelFileName = Left$(objImpRep.FullName, Len _
(objImpRep.FullName) - 4)
objImpRep.ExportExcel strExcelFileName & ".xls"
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub

What do you think is the cause?
 
Not sure why you are seeing this. You code runs fine for me.

Dave Griffin


The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
Want good answers? Read FAQ401-2487 first!
 
I use Impromptu administrastor 7.0.809.0.
What version do you use?
 
Maybe a problem with the database connection of the report?
Not enough space to save?
Or divison by zero error within the report when saving ?
 
Isn't that macro assuming you already have a report open in Impromptu ?

Cheers


[blue]Backup system is as good as the latest recovery[/blue]
 
The macro assumes a report is open.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top