Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
bonaiti
Contributor II
Contributor II

problem ExportBitmaptofile v9

Hello.

I'm a problem with this function. Now i use the QV 8.2 and this macro is ok. I create a bmp and i open the file with the sheet. It's OK

Sub Esporta
stringa = "C:\PortafoglioNastro.bmp"
ActiveDocument.ActivateSheet(1)
ActiveDocument.ActiveSheet.ExportBitmapToFile(stringa)
End Sub

I open the same file with QV 9.0 SR4 / SR3 .... and the macro run, but the file bmp created is all blank. i don't know why.......[:S]

is it a BUG? or something else?

Thank you.

Robert

Labels (1)
1 Solution

Accepted Solutions
bonaiti
Contributor II
Contributor II
Author

ALSO THIS

http://community.qlik.com/forums/t/28099.aspx

IT's a BUG I Think !!!!!!!!!! Sad

View solution in original post

3 Replies
bonaiti
Contributor II
Contributor II
Author

ALSO THIS

http://community.qlik.com/forums/t/28099.aspx

IT's a BUG I Think !!!!!!!!!! Sad

kji
Employee
Employee

Try this:

Sub Esporta
stringa = "C:\PortafoglioNastro.bmp"

ActiveDocument.ActivateSheet(1)

ActiveDocument.GetApplication().WaitForIdle

ActiveDocument.ActiveSheet.ExportBitmapToFile(stringa)
End Sub

Adding the WaitForIdle call will give the sheet time to repaint before doing the export.

bonaiti
Contributor II
Contributor II
Author

IT WORK!!!

Big Smile

Thank you