Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Support Cases coming to Qlik Community Oct. 4! Start chats, open cases, explore resources: READ DETAILS
Showing results for 
Search instead for 
Did you mean: 
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




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

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

Contributor II
Contributor II

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.