2 Replies Latest reply: Nov 20, 2016 7:50 AM by Marcus Sommer RSS

    QlikView vbs open doc in new window

    Stefan Stoichev

      Hi all,

       

      I'm writing a small vbs script that opens a qvw without data and saves it in different location. After the save is complete the document is closed. The problem is that if the main doc is already open QV closes it at the end. Is there a way the vbs script to open new QV instance instead using the already open one?

       

      My "script.vbs" looks like this:

       

      Set MyApp = CreateObject("QlikTech.QlikView")
      
      set MyDoc = MyApp.OpenDocEx ( "c:\test\test.qvw", 2 , false , "" , "", "" , true)
      MyDoc.SaveAs("c:\test_nodata\test.qvw")
      MyDoc.CloseDoc
      MyApp.Quit
      

       

      Regards!

      Stefan