Code: Select all
Dim DocID as long
Dim DocName as string
Dim Eat as long ' this is a throw away
'get id
CoPDFXCview1.GetDocumentFromName DocName, DocID, Eat
Call CoPDFXCview1.DoVerb(, "GetDocumentFromName", DocName, DocID, 0)
I continually get back "-1" for DocID which i assume means not found. I have tried DocName with full path, full filename, name w/o ext and still the same result. What am I doing wrong?
The main reason I need to know is to close the document but i can't seem to do that with name ony so if there is an easier way that would be helpful also, but i do need th Id for other stuff. Thanks