Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 ?
You cannot run these types of macros when using QMC, the ones that use ActiveX objects or refer to them or properties.
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.