

Creator
2019-03-06
01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
606 Views
3 Replies

Partner - Specialist III
2019-03-06
02:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.

Partner - Specialist III
2019-03-06
02:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
601 Views

Partner - Specialist III
2019-03-06
03:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
592 Views
