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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

OCX doesn't takes correctly variable string (C#)

Hello,

I noticed reccently that all variables in QlikView which has a space in a string aren't taken correctly.

E.g:

Variable name         Value

******************************

myvar                     Is A Test

If I do in C#:

    private Doc qvReport = null;

    qvReport = axQlikOCX1.OpenDocument(filepath, "", "");

    list.Add(new QlikViewVariable(v.Name, qvReport.GetVariable(v.Name).GetRawContent().ToString()));

                   

When I do the last line, QlikView returns me only "Is" instead of whole chain "Is A Test".

I tried to do a

Console.WriteLine(qvReport.GetVariable(v.Name).GetRawContent().ToString());

And in fact, taking it from QlikView doesn't returns the complete variable string, but stops at the first space he finds.

Any suggestion?

0 Replies