Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issuing resize for the QlikView document in the OCX control

I have a very basic Visual Basic application that loads a QlikView document using the OCX control. I am able to resize the OCX control itself but cannot get the "FitZoomToWindow()" issued so that the document itself resizes like I do through QlikView macros. I am using the following code:

ocxCriticalDashboard.ActiveDocument.ActiveSheet.FitZoomToWindow()

Any suggestions would be greatly appreciated.

2 Replies
Not applicable
Author

The FitZoomToWindow method just does not work in the OCX control. There are a few like this that can be called and don't do anything. It would be great if they were removed or added, or at least if it was written in the documentation, but it's not...

Not applicable
Author

Hi daltonruer,

Interesting question. Have you tried ZoomFactor? E.G:

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = 0.9

mysheet.SetProperties sp

You will have to figure out what zoomfactor you want yourself, though.