Hi all,
I’m using OCR automation in word in a more elaborate way than that shown next, but I’ll keep it simple for problem solving issues.
When I run the code below It works fine except that word behaves weird after code execution.
Problem is that pictures in documents, that are Layout=’In front of text’, don’t allow to rotate or move with the mouse. The mouse pointer when hooving above the toolbar goes wild.
Has anyone experienced this behaviour? Is there a fix? Is there something i’m missing in my code?
I thought it has to do with object releasing but i don’t know how to use System.Runtime.Interop.Marshal.ReleaseCOMObject in VBA….
Help, please.
Private Sub CommandButton1_Click()
Dim doc As Object
Set doc = New MODI.Document
doc.Create
doc.Close
Set doc = Nothing
End Sub
Run this to see if it results in problems to pictures in doc after execution.