Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.


Fit Zoom to WIndow Button


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.

3 Replies
Valued Contributor

Re: Fit Zoom to WIndow Button

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



    'apply zoom to all other sheets

    ActiveDocument.GetApplication.WaitForIdle 300


End Sub

Re: Fit Zoom to WIndow Button

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.




Re: Fit Zoom to WIndow Button

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.

Community Browser