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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change resolution

Hi,

I have developed a dahsboard using resolution 1280x1024

The issue is not everybody use this screen resolution & when they opened it, all the objects not fit to the screen

Is there a way for user to "Fit Zoom to window" from their access point?

Thanks

5 Replies
Not applicable
Author

and any ways to do it without macro?

if there is no way to do it, anyone mind to share how to set the macro? thanks

Not applicable
Author

I found it.. user have options to choose "Fit Zoom to WIndow" or "Apply Zoom to All Sheets" from IE

but they dont have that options from Mozilla argh

Miguel_Angel_Baeyens

Hi,

Unfortunately, there's no way to fit zoom to window using the Ajax Zfp client, so you will have to develop the document for that size, or deal with the scroll bars.

Regards.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

Not applicable
Author

Take a look at this macro - it only runs at OnOpen (trigger) so has little overhead. The key thing to note is the check on the value of vReload; it is passed with a value of 1 when the document is being reloaded through command line /r (my reloads are 'pushed' as remote commands from elsewhere, not scheduled). An OnPostReload trigger sets the variable back to 0 so this is its default setting.

sub OnOpen
' Attached to the document OnOpen trigger.

set doc=ActiveDocument

vReload = doc.Variables("VRELOAD").GetContent.String

if vReload = "0" then ' not running under /r switch

  set app=doc.GetApplication

  app.WaitForIdle

  if app.QTProduct = "QlikOcx" then ' client = plugin

   set sheet=doc.ActiveSheet

   width = app.ScreenWidth
   height = app.ScreenHeight

   if width = 1280 and height = 1024 then
    set sp=sheet.GetProperties
    sp.ZoomFactor = 1.0
    sheet.SetProperties sp
   else
    msgbox "Qlikview will make a 'best fit' for your resolution (" & width & "x" & height & ").",,_
     "Document is optimised for 1280x1024 resolution"
    sheet.FitZoomToWindow
   end if

   app.WaitForIdle

   sheet.ApplyZoomToAllSheets

   app.WaitForIdle

  end if

  doc.ClearAll false

end if

end sub

Regards,

Gordon

Not applicable
Author

Hello, We have Doc's with multiple sheets (tabs) and multiple users going in through Access Point with possibly just as many screen resolutions.

Would you suggest this trigger be set up on each sheet (tab)?

Regards, Däv