Hello,
I would like to create a Fit Zoom to Window button to help our users adjust their apps to the many different monitor sizes that are used in the company. Any help on this will be greatly appreciated.
You can add this code as a macro and it will zoom to window:
Sub Zoom
Set s = ActiveDocument.ActiveSheet
ActiveDocument.GetApplication.WaitForIdle 300
'Apply zoom to fit window for current sheet
ActiveDocument.GetApplication.WaitForIdle 300
s.FitZoomToWindow
'apply zoom to all other sheets
ActiveDocument.GetApplication.WaitForIdle 300
s.ApplyZoomToAllSheets
End Sub
There is no possibility to zoom in the AccessPoint, so I think you're talking about Desktop or Plugin users.
Write a macro like presented in the first post of this discussion: Fit zoom to window Macro in Access Point
Attach the macro to a button using an action type External->Run Macro
Note that you cannot let a desktop window resize trigger this macro automatically, because QlikView has no events for this.
Best,
Peter
Thanks, new to developing and didn't think about end user's screen not having function. Would probably be confusing for them to have a Zoom button that did not zoom for Access Point users.