Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewforum
Creator II
Creator II

Help me to add "WaitForIdle" in my vbs script please!

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.

2 Replies
Not applicable

jerrysvensson
Partner - Specialist II
Partner - Specialist II

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