Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QlikView Version 11 Library Doesn't Work Anymore

Hi, I wrote a C# application using Visual Studio for QlikView v10 a few years back. I'm updating this application to reference the QlikView v11 type library however it looks like either the API has changed completely or something is wrong when I import the v11 library.

For example, when I add the QlikView v11 Type Library to visual studio, I don't see the Application or Doc classes anymore. I see this (see screenshot).

The reference I'm adding is to c:\program files\qlikview\qv.exe. It looks like it's doing the QlikOCX for some reason and not the type library. Has anyone seen this? Is this a Visual Studio issue with the COM interop?

11-15-2012 11-04-49 AM.jpg

3 Replies
tombombadil
Contributor III
Contributor III

Hi Steve,

remove the reference.

Go to your Form -> Toolbox -> Choose Items -> COM Components

Mark QlikOCX Control like in the screenshow below:

qlik_ocx.jpg

Drag the Qlikview Control onto your form and all required COM Wrappers should be automatically created.

Then you can use the classes as usual.

Best regards,

Tom

Not applicable
Author

Tom - thanks for replying. I tried this (am using Visual Studio 2010) and it still has the same issue. It adds the QlikView, QlikOCXLib and AxQlikOCXLib references when I add this to my form but none of them have the standard object model. See screen shot of my object browser. You'll see there's no Application object defined for example. Here's a snipet of my code and it used to work for QV10:

QlikView.Application app = new QlikView.Application();

....

QlikView.Doc doc = app.OpenDoc(lstFiles.Items.ToString(), "", "", "");

QlikView.IDocumentProperties props = doc.GetProperties();

...

11-16-2012 9-28-04 AM.jpg

tombombadil
Contributor III
Contributor III

Hi Steve,

I'm not at work anymore so its hard to give you decent information now, but I will try.

When you drag the Qlikview Control onto the form, you should be able to add the path of a Qlikview file manually at the designer.

You will see the report in the designer, if everything works fine.

Then you could check the automatically created code, coz this works.

I'm on vacation now for 2 weeks so I cant help you anytime soon, sorry!

Good luck!

Tom