Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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