Page 1 of 1

Convert Failed

Posted: 2014-09-26T09:24:59-07:00
by chaitanyakonda
I'm using Windows 7 and Excel 2013.

I added the reference ImageMagickObject 1.0 Type Library and also made sure that I am not binding early.
But I still have an error when I run the following code.

Code: Select all

Private Sub CommandButton1_Click()
On Error GoTo ErrorHandler
Dim img
Set img = New ImageMagickObject.MagickImage
MsgBox (img.Convert("C:\Users\AIH\Desktop\test1.jpg", "-format", "%c", "histogram:info:C:\Users\AIH\Desktop\out.txt"))
Exit Sub
     MsgBox (Err.Number & ":" & Err.Description)
End Sub
The error number is '-2147215503'.

Please let me know how I can resolve this? I would also be grateful if anybody can point for VBA ImageMagick Documentation.

Thanks a lot.