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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Design!

Hello everyone.

I need some help again.

I'm in the process o creating an image to use it as background of my application, the resolution of my laptop monitor is 1366 x 768 and i want to know if there is a way to fit my application to different monitor resolutions in an automatic way, i mean when i open my app in another computer with more or less resolution i want that it fits the screen...

Is there a way to do that??

Thanks...

Regards!

2 Replies
rajeshvaswani77
Specialist III
Specialist III

You need to add a button called fit to window. To the button add a trigger that runs a macro. Use below code in the macro.

Sub Zoom

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

if sp.ZoomFactor=1 then

ActiveDocument.ActiveSheet.FitZoomToWindow

ActiveDocument.GetApplication.WaitforIdle

ActiveDocument.ActiveSheet.ApplyZoomToAllSheets

else

sp.ZoomFactor = 1

mysheet.SetProperties sp

end if

End Sub

Not applicable
Author

Thank's a lot... i'll try this right now!!