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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Siva_Sankar
Master II
Master II

how to zoom qlikview chart objects using button or macro?


Hi,

Would like to zoom qv objects using macro or button. can any one help?

1 Solution

Accepted Solutions
Not applicable

use these marcos, it will zoom out and zoom in your sheet by 15% each time you click the button.

Sub ZoomOut

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor+0.15

mysheet.SetProperties sp

End Sub

Sub ZoomIn

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor-0.15

mysheet.SetProperties sp

End Sub

Regards,

Amay

View solution in original post

3 Replies
Not applicable

use these marcos, it will zoom out and zoom in your sheet by 15% each time you click the button.

Sub ZoomOut

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor+0.15

mysheet.SetProperties sp

End Sub

Sub ZoomIn

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor-0.15

mysheet.SetProperties sp

End Sub

Regards,

Amay

SergeyMak
Partner Ambassador
Partner Ambassador

Hi Sive,

Could you tell more about your case. Is it in Desktop or in Ajax...

Why do you need it etc.


Regards,

Sergey

Regards,
Sergey
jonathandienst
Partner - Champion III
Partner - Champion III

The zoom macro will work in the desktop client and the IE plugin. It will not work in Ajax under Chrome or Safari.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein