Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Could you please help me to add “GetApplication.WaitForIdle” or “GetApplication.Sleep” in the below vbs script. I am unable to export both the image as the application is larger. Can someone please help me out on this.
Hope this links heps you. http://community.qlik.com/message/115927#115927
Try adding more WaitForIdle.
If your app has more then one sheet, make sure you select the sheet where yor objects resides and then export them.
Also, the objects can't be hidden.
Set QV = CreateObject("QlikTech.QlikView")
Set myQVW = QV.OpenDoc("C:\Users\jmu\Desktop\Case_160866\160866.qvw")
'Select sheet
QV.WaitForIdle
set obj = myQVW.GetSheetObject("CH01")
obj.ExportBitmapToFile "C:\Users\jmu\Desktop\Case_160866\CH01.bmp"
QV.WaitForIdle
set obj2 = myQVW.GetSheetObject("CH02")
obj2.ExportBitmapToFile "C:\Users\jmu\Desktop\Case_160866\CH02.bmp"
QV.WaitForIdle
QV.Quit