Very Urgent - dll catastrophic failure

S

Sophos

Hi,

I'm trying to use the Overpower ImageLib dll to create charts in .Net
- I'm using this because we are migrating from asp and it's way
quicker to keep the code as is. I've imported the dll to the project
and I've created an instance of the class in my page :

myGraph = New ImageLib

all this works fine, however once I try to assign a value to a
property, say :

myGraph.FontFace = "Arial"

and then compile and run, I get a
'System.Runtime.InteropServices.COMException catastrophic failure'
error which doesn't help me very much... Any ideas?

Although of note is that boolean properties seem to work...

Thank you,
Jonathan
 
D

Dino Chiesa [Microsoft]

what do you mean by
"imported the dll to the project"?

Is it an ActiveX component?

I had the same message -- "catastrophic failure" -- when trying to use the
Acrobat Reader ActiveX control incorrectly. To get it to work, I had to
add it to the VS toolbox. Eg,

With the Win forms designer showing, hover over the toolbox. Be sure the
"Windows Forms" tab is open on the Left hand side. Right click, then select
"Add Items..." you get the "Customize Toolbox" dialog. Select the COM tab.
check the box for Adobe Acrobat control for ActiveX. OK.

You have now added the Adobe Acrobat ActiveX control to the VS toolbox. It
should appear at the bottom of the list. From that toolbox, You can now
drag an instance of that control onto a Windows Form, and party on, as with
any other Windows Forms control.

You might also try the interop group :
microsoft.public.dotnet.framework.interop

-D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top