Hi,
I am trying to get coordinates of a bookmark item on a word document.
Dim w = wApp()
Dim doc = w.Documents.Open(DOCFileName, , True)
Dim v As Word.Window = doc.ActiveWindow
Dim izq As Int32, sup As Int32, ancho As Int32, largo As Int32
Dim r As Word.Range
doc.Application.Visible = True
r = doc.Bookmarks.Item("ANYOFIRMA").Range
Until here the variables apparently have values and no error popped up.
v.GetPoint(izq, sup, ancho, largo, r) -> This output the error: System.Runtime.InteropServices.COMException: 'El comando falló'
I am lost and I don't know what else to try.
Cheers