I use this line
Dim d As QlikView.Document
d = ocxQlik.OpenDocumentEx(strDocumentPath, 1, False, "", "")
to open a document, then use the variable d to access the document.
If I have a document in the OCX already open, I use this to access it.
d = ocxQlik.ActiveDocument
I hope that helps;
Does this work without issues? I tried opening the same qlikview doc on the same winforms page. Different objects in 2 different qlikview ocx controls. Issues with the wrong objects showing up in the controls where I specify to use a specific object. It's as if the winforms page is opening 2 different qlikview dashboards of the same thing. If I target the OCX control to look at a bar grid control for example, I sometimes cannot click data points because the control thinks there is a graph on top of it or some other object that wasn't selected for that ocx control. Does the OpenDocumentEx method open the document in a different way that can pull objects out and place into multiple qlik ocx controls?