<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic QlikView - VbScript - C# in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270003#M399596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;it's my first message in this board because I always found everything I needed.&lt;/P&gt;&lt;P&gt;There's something I didn't find and I'm trying to understand if it's impossible to do.&lt;/P&gt;&lt;P&gt;So..let me explain what I'd like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a qvw document script like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Customer&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;[&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Sales&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;Order&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ID&lt;/SPAN&gt;&lt;SPAN class="p"&gt;],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;ShipDate&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;Product&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;VBGetValue&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="n"&gt;FromDotNet&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;Sales&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;Quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[Sales Orders.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Sales Orders$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBGetValue is a function defined in the Edit Module window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;function&lt;/SPAN&gt; &lt;SPAN class="nf" style="color: #0000ff;"&gt;VBGetValue&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;dim&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myObj&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;Set&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myObj&lt;/SPAN&gt; &lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #ba2121;"&gt;"MyNamespace.MyClass"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;VBGetValue&lt;/SPAN&gt; &lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myObj&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.m&lt;/SPAN&gt;&lt;SPAN class="n"&gt;yMethod&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ActiveDocument&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;end&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to communicate with my registered C# DLL and to know the right type of COM &lt;STRONG&gt;ActiveDocument&lt;/STRONG&gt; object: it's a &lt;STRONG&gt;Doc&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So..i tried to cast in the C# side this parameter with Doc class within &lt;STRONG&gt;Interop.QlikView.dll&lt;/STRONG&gt; in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN class="kt" style="color: #b00040;"&gt;string&lt;/SPAN&gt; &lt;SPAN class="nf" style="color: #0000ff;"&gt;myMethod&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kt" style="color: #b00040;"&gt;object&lt;/SPAN&gt; &lt;SPAN class="n"&gt;a&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #408080; font-style: italic; font-size: 10pt;"&gt;var doc = (Doc) a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #408080; font-style: italic; font-size: 10pt;"&gt;return doc.Name;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;catch&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Exception&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ex&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ex&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Message&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;And this is the Exception Message caught:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error HRESULT E_FAIL has been returned from a call to a COM component. MyClass -2147467259 &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;at QlikView.Doc.get_Name()&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What's wrong?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 11:16:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-18T11:16:55Z</dc:date>
    <item>
      <title>QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270003#M399596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;it's my first message in this board because I always found everything I needed.&lt;/P&gt;&lt;P&gt;There's something I didn't find and I'm trying to understand if it's impossible to do.&lt;/P&gt;&lt;P&gt;So..let me explain what I'd like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a qvw document script like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Customer&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;[&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Sales&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;Order&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ID&lt;/SPAN&gt;&lt;SPAN class="p"&gt;],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;ShipDate&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;Product&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;VBGetValue&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="n"&gt;FromDotNet&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;Sales&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="n"&gt;Quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[Sales Orders.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Sales Orders$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBGetValue is a function defined in the Edit Module window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;function&lt;/SPAN&gt; &lt;SPAN class="nf" style="color: #0000ff;"&gt;VBGetValue&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;dim&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myObj&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;Set&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myObj&lt;/SPAN&gt; &lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #ba2121;"&gt;"MyNamespace.MyClass"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;VBGetValue&lt;/SPAN&gt; &lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;myObj&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.m&lt;/SPAN&gt;&lt;SPAN class="n"&gt;yMethod&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ActiveDocument&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;end&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to communicate with my registered C# DLL and to know the right type of COM &lt;STRONG&gt;ActiveDocument&lt;/STRONG&gt; object: it's a &lt;STRONG&gt;Doc&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So..i tried to cast in the C# side this parameter with Doc class within &lt;STRONG&gt;Interop.QlikView.dll&lt;/STRONG&gt; in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN class="kt" style="color: #b00040;"&gt;string&lt;/SPAN&gt; &lt;SPAN class="nf" style="color: #0000ff;"&gt;myMethod&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kt" style="color: #b00040;"&gt;object&lt;/SPAN&gt; &lt;SPAN class="n"&gt;a&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #408080; font-style: italic; font-size: 10pt;"&gt;var doc = (Doc) a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #408080; font-style: italic; font-size: 10pt;"&gt;return doc.Name;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;catch&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Exception&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ex&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ex&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Message&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;And this is the Exception Message caught:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error HRESULT E_FAIL has been returned from a call to a COM component. MyClass -2147467259 &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;at QlikView.Doc.get_Name()&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What's wrong?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270003#M399596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T11:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270004#M399597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this is helpful: &lt;A href="https://community.qlik.com/message/1079449"&gt;Calling a DLL function in my QV script ...&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270004#M399597</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-18T11:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270005#M399598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270005#M399598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T13:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270006#M399599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your main impediment here and actually a roadblock is that &lt;STRONG&gt;when &lt;SPAN style="text-decoration: underline;"&gt;a load script is running&lt;/SPAN&gt; the QlikView object model is not available&lt;/STRONG&gt;. It seems to me that your are trying to access the currently running load script's object model - right? QlikView Desktop can be in one of two phases. Running load script and executing the application that use the data model that the load script produced. These phases aren't overlapping. And only the second phase instantiate and make available a COM Object Model.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At no time during load script execution is there any contact with the QlikView Object Model. The only thing you can get in contact with is the standard VBScipt (or JScript) engine of the Windows OS. This VBScript only has access to the standard features as documented by Microsoft. That is why the VBGetValue() actually works. But your C# code - from what you show us can't make any calls back to an object that is not available or does not exist.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only afterwards when the load script has finished and made ready the in-memory data model for consumption of a QlikView session will the QV Object Model be available. The connection point from a COM-perspective is that you are first connected to either QlikView Desktop or QlikView Server and then you can through COM either get the ActiveDocument or Open an existing QVW-file/document or create a new document. So Macros/Modules invoked through the UI of either QV Desktop, IE plug-in (Internet Explorer only), QV OCX or even a regular web-browser (with limitations of functionality for this specific option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your C# you can't get in contact with an object model of the application that is running the load script. A hack that would be rather odd would be that you could be able to independently connect directly with QlikView in a separate instance of QlikView (maybe) and then open an old/previous instance of a document. That would seem very convoluted and without knowing your use-case I would advice strongly against anything like that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270006#M399599</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-18T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270007#M399600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which kind of information respectively values should be really returned from &lt;SPAN class="n"&gt;VBGetValue() - maybe there are other ways to get them - probably not the documentname() or is it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;- Marcus&lt;/SPAN&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 15:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270007#M399600</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-18T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270008#M399601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Marcus. You are right!&lt;/P&gt;&lt;P&gt;What I need is to pass arrays of data from resident tables and return back them.&lt;/P&gt;&lt;P&gt;Is it possible to pass fields values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 08:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270008#M399601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T08:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270009#M399602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you very much! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 08:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270009#M399602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T08:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270010#M399603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean with "resident tables" already in these qvw loaded data? If yes then they are in general accessable. Could you give a more practically example to them - how and where loaded and where should they be access again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 13:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270010#M399603</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-19T13:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270011#M399604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure Marcus,&lt;/P&gt;&lt;P&gt;my intentions are like the image below.&lt;/P&gt;&lt;P&gt;I would like to pass a field and to return a modified "Product" value through VBScript (and maybe within the VBScript be able to call a c# dll passing the field value)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-19_150503.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150078_2017-01-19_150503.png" style="height: 208px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270011#M399604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270012#M399605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In which way should "Product" be modified? Please give an example for a typical input- and output-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270012#M399605</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-19T14:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270013#M399606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmm....really I don't need to modify it, I need to analyze this product string following a set of rules and then to create a log through log4net using C#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270013#M399606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270014#M399607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean with analyzing the string with a set of rules something like regular expressions then you should take a look here: &lt;A href="http://www.qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/" title="http://www.qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/"&gt;http://www.qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/&lt;/A&gt;‌ but maybe there are even easier solutions possible and the efforts to rebuild the dll-logic may not so big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And of course you could store those results within a log-file in a csv- or xml-fileformat which might quite similar to the output from log4net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270014#M399607</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-19T14:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270015#M399608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Marcus sure, but how can I pass the field value to the MyVBScript function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270015#M399608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270016#M399609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be quite similar to your first-statement above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;function&lt;/SPAN&gt; &lt;SPAN class="nf" style="color: #0000ff;"&gt;VBGetValue&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(Product&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBGetValue&lt;/SPAN&gt; &lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt; mid(Product, 3,2) 'or whatever ...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;end&lt;/SPAN&gt; &lt;SPAN class="k" style="color: #008000; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270016#M399609</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-19T14:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270017#M399610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus!&lt;/P&gt;&lt;P&gt;I think this is the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270017#M399610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270018#M399611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus is it possible to have access to a mapping table within the MyVBScriptFunction and then to pass it to C#?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-19_162536.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150091_2017-01-19_162536.png" style="height: 384px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270018#M399611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-19T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270019#M399612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really and not as a mapping-table itself but you could aggregate each field within an array of fieldvalues and those fieldarrays are further concatenated within an array of fields and transfering this array to your vbs-function you could rebuild the structure there - just with split() on your set delimiter and then looping through the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I could imagine that there are other and easier ways for it and maybe you won't need the vbs and could do it just with inbuilt qlikview features. Could you please give an example to which Product string leads to which returned result respectively which output within the log-file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270019#M399612</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-19T15:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270020#M399613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Marcus. This seems a great idea.&lt;/P&gt;&lt;P&gt;How could I do that?&lt;/P&gt;&lt;P&gt;Could you please post an example of your suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 11:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270020#M399613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T11:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView - VbScript - C#</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270021#M399614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here an example what was meant:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableFieldArray:&lt;/P&gt;&lt;P&gt;load concat(Year, ',') &amp;amp; '|' &amp;amp; concat(recno(), ',') as TableFieldArray;&lt;/P&gt;&lt;P&gt;load 2010 + recno() as Year AutoGenerate 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vTableFieldArray = peek('TableFieldArray', 0, 'TableFieldArray');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you could transfer these variable to vbs as function-parameter. But like above mentioned it could be that you could do all your adjustment, analyzing and/or output directly with qlik-features - and should this be possible you should rather not mix up different tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 10:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-VbScript-C/m-p/1270021#M399614</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-21T10:32:48Z</dc:date>
    </item>
  </channel>
</rss>

