I managed to solve this problem. My was relates to delays..
- QV needs som time to load the data before I can do any export of any images.
save this file below as an.vbs file and execute it with cscript.exe %YourFileName%.vbs
CONST QvDoc = "C:\test.qvw"
CONST QvObj = "SH01"
CONST ImagePath = "C:\Image.bmp"
Call DoImageExport(QvDoc, QvObj, ImagePath)
Sub DoImageExport(QvDoc, QvObj, ImagePath)
Set objQvApp = CreateObject("QlikTech.QlikView")
Set objQvDoc = objQvApp.OpenDoc(QvDoc)
Set objQvObj = objQvDoc.ActivateSheet(QvObj)
If there is anyone with an example howto change the screen resolution in the script then please let me know.
I need to export the image in 800x600 resolution.