Home/ Reference/ Application

app.ActiveWindow / app.ActiveView

Window and view object. Zoom is a percentage: app.ActiveWindow.Zoom = 50.

Signature

app.ActiveWindow / app.ActiveView

Notes

Window and view object. Zoom is a percentage: app.ActiveWindow.Zoom = 50.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
win = app.ActiveWindow
win.Zoom = 50                           # zoom to 50%

print("Zoom: ", win.Zoom)
# window layout and view toggles live on app.ActiveView

About this section: Application

Application — the CorelDRAW application object.

Other entries in this section