Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
felipe_oliveira
Contributor III
Contributor III

Open a dashboard with fit zoom to window

Hi masters

Is there a way to open Qlikview and have the "Fit Zoom to Window" automatically applied to all sheets?

I have tried inserting the following on triggers but it did not work

Sub Zoom

ActiveDocument.ActiveSheet.FitZoomToWindow

ActiveDocument.ActiveSheet.ApplyZoomToAllSheets

End Sub

Please advise

Regards

Felipe Oliveira

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this? You should call Zoon into OnOpen Trigger

Sub Zoom

ActiveDocument.GetApplication.WaitForIdle

ActiveDocument.ActiveSheet.FItZoomToWindow

End Sub

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

3 Replies
MK9885
Master II
Master II

Fit Zoom to Window Document Extension

Extension only works in webmode or maybe Access Point.

Anil_Babu_Samineni

May be this? You should call Zoon into OnOpen Trigger

Sub Zoom

ActiveDocument.GetApplication.WaitForIdle

ActiveDocument.ActiveSheet.FItZoomToWindow

End Sub

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ludwikkaminski
Contributor II
Contributor II

Hi,

It should be done in two diferent macro and then run one by one in two diferent action:

Sub FitZoomToWindow
ActiveDocument.GetApplication.WaitForIdle
ActiveDocument.ActiveSheet.FitZoomToWindow
ScreenUpdating = True
end sub

Sub ZoomToAllSheets
ActiveDocument.GetApplication.WaitForIdle
ActiveDocument.ActiveSheet.ApplyZoomToAllSheets
ScreenUpdating =
True
end sub

BR

Ludzik