View Single Post
Old 07-12-2017, 12:10 AM
vbaTrainee85 vbaTrainee85 is offline Windows 7 64bit Office 2013
Join Date: Jul 2017
Posts: 1
vbaTrainee85 is on a distinguished road
Default VBA Access and Image Magick - Not working!


I am trying to work with imageMagick and VBA Access -
I registerd the ImageMagickObject.dll and put it in the VBA Library

I get this error warning : 429 Cannnot create object through activex component

My Code:

Dim img As New ImageMagickObject.MagickImage
Dim path As String
Dim output As String
Dim RetVal As Object

Sub tests()
path = "C:\Users\ged\Desktop\PDF VBA\PrivatRente.pdf"
output = "C:\Users\ged\Desktop\PDF VBA\PrivateRente2.pdf"

'Set img = New ImageMagickObject.MagickImage
img.Compare (path)
RetVal = img.Convert(path, output)

Set img = Nothing
End Sub
Reply With Quote