Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
sayadutt
Creator
Creator

Autofit screen using Ajax

Hello,

I am using Ajax plugin to display my qvw through browser. 

Is there any way that my page auto-fits with the screen resolution? Currently it looks different when I open the same through different systems.

 

 

Thanks

Labels (1)
3 Replies
hopkinsc
Partner - Specialist III
Partner - Specialist III

Unfortunately not. The QlikView document needs to be designed based on the most common screen size that the business uses.
In the QlikView desktop client there is an option inser the ‘view’ menu that fits the page to the screen size. There is an macro around that you can add to an action on a button BUT I don’t believe it works in AJAX. I’ve used it in the past but I think i was using the IE plugin (it was a while ago so I can’t remember).
Try doing a search for QlikView macro to change screen size and see what comes up. Your server settings need to be change ages to allow macros from unknown sources but like I said, I’m not 100% sure it would work in AJAX.
hopkinsc
Partner - Specialist III
Partner - Specialist III

Try this ..
https://community.qlik.com/t5/QlikView-App-Development/Change-screen-resolution/td-p/669852
Sorry, it doesn’t change resolution, it zooms to screen size.
hopkinsc
Partner - Specialist III
Partner - Specialist III

This is the zoom macro that i used previously. 

it wasnt the best look but did its purpose.

Put the below in the macro module then create a button with a run macro action to run Autozoom to test

Sub Autozoom

ActiveDocument.GetApplication.WaitForIdle
ActiveDocument.ActiveSheet.FitZoomToWindow

End Sub

 

I hope that helps