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: 
Not applicable

is there is a way to dynamically change the resolution of a report based on the detected monitor

is there is a way to dynamically change the resolution of a report based on the detected monitor

5 Replies
israrkhan
Specialist II
Specialist II

Try,

Document>> View>> Fit Zoom To Window..

Clever_Anjos
Employee
Employee

Are you asking about Reports or Graphs?

Not applicable
Author

graphs and reports.

As the resolution change, graphs will change or reports too,

i need to keep it constant

rajeshvaswani77
Specialist III
Specialist III

Hi,

You need to have buttons to "fit to screen" as well as "default view"

Then in the macro have the following VB Script code.

To Zoom

start of code 

ActiveDocument.ActiveSheet.FitZoomToWindow
ActiveDocument.GetApplication.WaitforIdle
ActiveDocument.ActiveSheet.ApplyZoomToAllSheets

end of code

To unzoom

start of code 

set mysheet=ActiveDocument.ActiveSheet
set x=mysheet.GetProperties
x.zoomFactor=1
mysheet.setProperties x
ActiveDocument.GetApplication.WaitforIdle
ActiveDocument.ActiveSheet.ApplyZoomToAllSheets

end of code

thanks,

Rajesh Vaswani


Clever_Anjos
Employee
Employee

Reports are for printing, I´m assuming you´re writing about Tables (Straight and Pivot Tables).

Rajesh Vaswani gave a nice solution assuming you´re using Developer or Internet Explorer plugin.

For use into webview, search for a document extension (there´s one) that change sizes of objects to fit into the screen