<?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 Attach to running QV process? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Attach-to-running-QV-process/m-p/187777#M51327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my code I try to attach to a running instance of QlikView, but I always get an excpetion. I think I have the correct classname (CLSID) but apparently not so. I use QlikView 9 SR4 (64-bit). I have tried avery combination of running both Visual Studio and QlikView as administrator and normal user. The DirectCast will faile everytime.&lt;/P&gt;&lt;P&gt;I have tried several CLSID beside "QlikTech.QlikView" : QlikView.Document, QlikTech.QlikView.9, 86777794-415E-11D1-934D-0040333C91CC, 6E1BAAF6-ECB9-4505-86C1-5D04467B02CC.&lt;/P&gt;&lt;P&gt;Can anyone help me find the correct id? Or just know the solution.&lt;/P&gt;&lt;PRE style="FONT-FAMILY: consolas"&gt;Private Function GetQV() As QlikView.Application&lt;BR /&gt; Dim App As QlikView.Application = Nothing&lt;BR /&gt; Dim processes As Process() = Process.GetProcessesByName("Qv")&lt;BR /&gt; If processes.Length &amp;gt; 0 Then&lt;BR /&gt; Try&lt;BR /&gt; App = DirectCast(Marshal.GetActiveObject("QlikTech.Qlikview"), QlikView.Application)&lt;BR /&gt; Return App&lt;BR /&gt; Catch&lt;BR /&gt; End Try&lt;BR /&gt; End If&lt;BR /&gt; Return Nothing&lt;BR /&gt; End Function&lt;/PRE&gt;&lt;PRE style="FONT-FAMILY: consolas"&gt;&lt;/PRE&gt;&lt;P style="FONT-FAMILY: consolas"&gt;Thanks&lt;/P&gt;&lt;P style="FONT-FAMILY: consolas"&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 15:34:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-03T15:34:01Z</dc:date>
    <item>
      <title>Attach to running QV process?</title>
      <link>https://community.qlik.com/t5/QlikView/Attach-to-running-QV-process/m-p/187777#M51327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my code I try to attach to a running instance of QlikView, but I always get an excpetion. I think I have the correct classname (CLSID) but apparently not so. I use QlikView 9 SR4 (64-bit). I have tried avery combination of running both Visual Studio and QlikView as administrator and normal user. The DirectCast will faile everytime.&lt;/P&gt;&lt;P&gt;I have tried several CLSID beside "QlikTech.QlikView" : QlikView.Document, QlikTech.QlikView.9, 86777794-415E-11D1-934D-0040333C91CC, 6E1BAAF6-ECB9-4505-86C1-5D04467B02CC.&lt;/P&gt;&lt;P&gt;Can anyone help me find the correct id? Or just know the solution.&lt;/P&gt;&lt;PRE style="FONT-FAMILY: consolas"&gt;Private Function GetQV() As QlikView.Application&lt;BR /&gt; Dim App As QlikView.Application = Nothing&lt;BR /&gt; Dim processes As Process() = Process.GetProcessesByName("Qv")&lt;BR /&gt; If processes.Length &amp;gt; 0 Then&lt;BR /&gt; Try&lt;BR /&gt; App = DirectCast(Marshal.GetActiveObject("QlikTech.Qlikview"), QlikView.Application)&lt;BR /&gt; Return App&lt;BR /&gt; Catch&lt;BR /&gt; End Try&lt;BR /&gt; End If&lt;BR /&gt; Return Nothing&lt;BR /&gt; End Function&lt;/PRE&gt;&lt;PRE style="FONT-FAMILY: consolas"&gt;&lt;/PRE&gt;&lt;P style="FONT-FAMILY: consolas"&gt;Thanks&lt;/P&gt;&lt;P style="FONT-FAMILY: consolas"&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 15:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Attach-to-running-QV-process/m-p/187777#M51327</guid>
      <dc:creator />
      <dc:date>2010-09-03T15:34:01Z</dc:date>
    </item>
  </channel>
</rss>

