Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Opening QVW from C#

Hi,

I'm trying opening a QVW file from .NET (C#).

I started a new console application an just wrote this two line :

QlikOCXLib.QlikOCX o = new QlikOCXLib.QlikOCX();

QlikView.Doc doc = o.ActiveDocument.GetApplication().OpenDocEx(documentPath, 0);

string script = doc.GetProperties().Script;

I'm getting an exception on the second code line. The exception detail is "Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)".

Nothing else.

Can you may help me to understand I can solve this issue ?

How is the best way to access a Qvw from a .NET application to retrieve some information (like the script for example) ?

Thanks a lot.

1 Reply
Not applicable
Author

Hi Sayed Seliman,

I am trying to read QlikView files with C#, May I know whether you have resolved this error ?