Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
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
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.
BI Consultant
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.ApplyZoomToAllSheetsapp.WaitForIdle
end if
doc.ClearAll false
end if
end sub
Regards,
Gordon
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