<?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 automation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163063#M36310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create an external program that pre loads the sales data from sql server and stores it in a sales.qvd file. If I run the script from the open qvw file the data is loaded without errors, but from my vb program I am getting a HResult com error&lt;/P&gt;&lt;P&gt;{"Error HRESULT E_FAIL has been returned from a call to a COM component."}&lt;/P&gt;&lt;P&gt;here is the code from vb program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim QvDoc As New QlikView.ActiveDocument&lt;/P&gt;&lt;P&gt;QvDoc = GetObject("....\marketing_sales_data\SalesLoader.qvw")&lt;/P&gt;&lt;P&gt;QvDoc.Reload()&lt;/P&gt;&lt;P&gt;QvDoc.CloseDoc()&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I need to retreive data from sql server and save in sales.qvd. What is the proper way of doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2009 05:06:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-24T05:06:00Z</dc:date>
    <item>
      <title>Qlikview automation</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163063#M36310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create an external program that pre loads the sales data from sql server and stores it in a sales.qvd file. If I run the script from the open qvw file the data is loaded without errors, but from my vb program I am getting a HResult com error&lt;/P&gt;&lt;P&gt;{"Error HRESULT E_FAIL has been returned from a call to a COM component."}&lt;/P&gt;&lt;P&gt;here is the code from vb program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim QvDoc As New QlikView.ActiveDocument&lt;/P&gt;&lt;P&gt;QvDoc = GetObject("....\marketing_sales_data\SalesLoader.qvw")&lt;/P&gt;&lt;P&gt;QvDoc.Reload()&lt;/P&gt;&lt;P&gt;QvDoc.CloseDoc()&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I need to retreive data from sql server and save in sales.qvd. What is the proper way of doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163063#M36310</guid>
      <dc:creator />
      <dc:date>2009-11-24T05:06:00Z</dc:date>
    </item>
    <item>
      <title>Qlikview automation</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163064#M36311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The proper way would be to use the command line syntax for QlikView and run a bat file or similar with:&lt;/P&gt;&lt;P&gt;C:\Path\Qv.exe /r C:\Path\QvFile.qvw&lt;/P&gt;&lt;P&gt;Another approach is to use QlikView Server/Publisher and reload on a schedule that way.&lt;/P&gt;&lt;P&gt;On a sidenote; to launch a QlikView instance from VBScript and run a reload you could use the following example. However, the Qv.exe /r Filename.qvw is a better solution.&lt;/P&gt;&lt;P&gt;rem ** VBScript **&lt;BR /&gt;set test= CreateObject("QlikTech.QlikView")&lt;BR /&gt;set newdoc = test.OpenDoc ("C:\Folder\Document.qvw","user","pass")&lt;BR /&gt;test.Reload&lt;BR /&gt;test.Save&lt;BR /&gt;test.Quit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 10:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163064#M36311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-24T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Qlikview automation</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163065#M36312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your great reply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this to work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim QvApp As New QlikView.Application&lt;/P&gt;&lt;P&gt;Dim QvDoc As QlikView.ActiveDocument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Load sales from sql database and save results to sales.qvd file&lt;/P&gt;&lt;P&gt;QvDoc = QvApp.OpenDoc("...\marketing_sales_data\SalesLoader.qvw")&lt;/P&gt;&lt;P&gt;QvDoc.Reload()&lt;/P&gt;&lt;P&gt;QvDoc.CloseDoc()&lt;/P&gt;&lt;DIV&gt;However, the script opens Qlikview and the document and the script execution window as well. However these are closed when script completes. What is annoying and I can't fix the sql connection string. I specify the user and password but the login window appears all the same. I Will try your suggestion from the command line.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Here is my connection string&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SalesData;Password=DBPassword;Initial Catalog=SalesInformation;Data Source=SqlSeverDB;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=XXXXXXX;Use Encryption for Data=False;Tag with column collation when possible=False] (XPassword is DYPHRRRXXXAA@!#$4444);&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Why is the login dialogbox still requesting the user password if I am supplying it in the string and how to fix?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 20:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163065#M36312</guid>
      <dc:creator />
      <dc:date>2009-11-24T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Qlikview automation</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163066#M36313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your vbscript works similar to my vb code except I have the same problem of the database credentials login dialog box that opens and request the password eventhough I am supplying it in the connection string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an idea, is it possible to create a sales.qvd file from vb using ole. This way I would execute the query from vb code and save results to the sales.qvd file without openning the qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 20:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163066#M36313</guid>
      <dc:creator />
      <dc:date>2009-11-24T20:54:09Z</dc:date>
    </item>
    <item>
      <title>Qlikview automation</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163067#M36314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my workaround for the login credentials dialog box.&lt;/P&gt;&lt;P&gt;In my VB prog I connect to my sql server and execute my query and save the dataset to a csv file&lt;/P&gt;&lt;P&gt;then I open my qvw document and load the contents of the csv and store it in the qvd file. I will post some sample code here shortly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 03:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163067#M36314</guid>
      <dc:creator />
      <dc:date>2009-11-25T03:50:31Z</dc:date>
    </item>
    <item>
      <title>Qlikview automation</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163068#M36315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we make the vbscript execution wait for the document reload to finish? Currently when I execute the vbscript, it completes immediately but the Qlikview App reload is still executing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 15:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/163068#M36315</guid>
      <dc:creator />
      <dc:date>2010-04-12T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview automation</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/1979437#M1220936</link>
      <description>&lt;P&gt;It is possible to fully automate reports generation from Qlikview (Both PDF Aand Excel)&lt;/P&gt;
&lt;P&gt;See below link -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://youtu.be/GtYxpd7WUbs" target="_blank"&gt;https://youtu.be/GtYxpd7WUbs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2022 04:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-automation/m-p/1979437#M1220936</guid>
      <dc:creator>Pravinkarne</dc:creator>
      <dc:date>2022-09-10T04:45:02Z</dc:date>
    </item>
  </channel>
</rss>

