VBA Automation error - catastrophic failure

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dgmoore
Posts: 7
Joined: 2013-12-11T08:54:43-07:00
Authentication code: 6789

VBA Automation error - catastrophic failure

Post by dgmoore »

I added ImageMagickObject.dll to my Access 2010 (Win7 Pro) vba references; the code compiles, but upon attempting to convert (resize) an image

NewImage.Convert InputputFileName, "-resize", "60%", WebFileName

I get -2147418113 Automation Error Catastrophic failure

Does anybody know what could be causing this?

Thanks
Dave
dgmoore
Posts: 7
Joined: 2013-12-11T08:54:43-07:00
Authentication code: 6789

Re: VBA Automation error - catastrophic failure

Post by dgmoore »

Found the problem - apparently ImageMagick is unhappy with early binding.

This works:

Dim NewImage As Object
Set NewImage = New ImageMagickObject.MagickImage


This does not:

Dim NewImage As New ImageMagic...
Post Reply