Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Brian_Munz
Employee
Employee

Fit Zoom to Window Document Extension

I've gotten a lot of requests for this extension, and it's not perfect, but hopefully it will work for what is needed.

Since there is no "Fit Zoom to Window" option for WebView, I've created a document extension that automatically zooms the QVW contents to fit the browser window.

This extension does not work in Opera since Opera doesn't seem to support zooming or scaling using CSS.  Besides that though, I tested it in all the major browsers and it seemed to work fine.

61 Replies
kamakshisuram
Creator
Creator

Thanks for the extension. Faced so many challenges and finally it worked in IE AJAX .

But it did not work as expected in Chrome.

manojkulkarni
Partner - Specialist II
Partner - Specialist II

Could let me know the steps to install & make it working IE. It will be great help..

kamakshisuram
Creator
Creator

Hi Manoj,

Download the above attached qar file and double click on it. Then you can see pop up saying Extension installed.

If it installed successfully then you can see that extension in either of below paths.

C:\Users\kamakshi\AppData\Local\QlikTech\QlikView\Extensions\Document

C:\Users\kamakshi\AppData\Local\QlikTech\QlikView\Extensions\Objects

ZoomtoFit extension is Document extension, So mostly you will see this in Documents folder if not please copy it from Objects folder to Document folder.

Then Open Qlikview Application and Add that extension.

When your publishing the same , please make sure Server should also have the same extension in the Documents folder.

Not applicable

Miguel,

Did you get a chance to load this on to GitHub?

FYI anyone else... The IE 11 issue is due to browser detection problems but my JavaScript and CSS are pretty rusty to say the least.

I resolved the issue changing the JavaScript code in Script.js using the code in the link above.

The Netscape check needs to to include the code from the first link above to check for IE11.

Not the most elegant or future proof but as a quick work around for IE11 it does the job.

I've noticed that the extension has some knock-on effects on pages that were the already expected resolution? Never mind.

Not applicable

hello brian

i use your extension and it's work fine,

but i have a problem:

when i publish my Doc to server , i can not see the popup label.

when i active my extension i can not see the popup but when i deactive extension i see the popup on server.

i want both of them;Extension and Popup,

can u help me more?

regards

Not applicable

Hello

I was wondering whether there is an option to disable the fit to zoom extension for a specific tab (sheet) but leave it as it is for the rest tabs?

Thanks very much

Not applicable

Hi Colin,

can you please share the updated version for IE11?

Thanks Heaps,

Oleg

Not applicable

Hi Oleg,

See attached zip file for updated code found in

C:\Users\[UserName]\AppData\Local\QlikTech\QlikView\Extensions\Document\zoomToFit

You can compare the javascript file (or just replace it).

Cheers

Not applicable

Great, thanks heaps!

everest226
Creator III
Creator III

by using Micro

Sub ZoomIn

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor-0.15

mysheet.SetProperties sp

End Sub

Sub ZoomOut

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor+0.15

mysheet.SetProperties sp

End Sub