Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

OCX: Error on openDocument

I'm new to development with QlikView.

I would like to access a qvw on our QlikView Server using the following C# code:

//doc, user and pw are string variables

axQlikOCX1.OpenDocument(doc, user, pw);

This returns a System.InvalidCastException. The return value hasn't the right type.

Thanks for help

2 Replies
Not applicable
Author

Any ideas?

The value of the doc variable is: "qvp://bits057/B.i.TEAM QlikView Demo/B.i.TEAM Demo 2010.qvw"

bits057 is my server, B.i.TEAM QlikView Demo is the name of our QVS and B.i.TEAM Demo 2010.qvw is the document I try to open.

Not applicable
Author

I was running into the same issue.  The system I was running on is 64 bit.  I inadvertently registered (regsvr32) the 32 bit qlikview.ocx control.  Registered the 64 bit version and now the error is gone.  Hope this helps.

-Dan