Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Support Cases coming to Qlik Community Oct. 4! Start chats, open cases, explore resources: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
bennywoo
Contributor II
Contributor II

OpenDoc not able to open document in QMC

I have a vbscript as below to open a QVW file.

set objQv = CreateObject("QlikTech.Qlikview")

set objQvDoc = objQv.OpenDoc("d:\test.qvw","","")

objQvDoc.reloadEx 0,1

objQvDoc.CloseDoc

objQv.Quit

.

The script can be run successfully from the Server DOS command prompt.

But if I schedule it to run in the QMC.  I got the following error

Microsoft VBScript runtime error: Object required: 'objQvDoc'


Can someone help on this ?

2 Replies
Miguel_Angel_Baeyens

You cannot run these types of macros when using QMC, the ones that use ActiveX objects or refer to them or properties.

bennywoo
Contributor II
Contributor II
Author

I found the solution.  The original qvw file was created in the test server.  So I created a another qvw in the production server and copy everything from the original qvw, then the QMC can call the vbscript to execute the qvw successfully.