Home/ Reference/ Application

app.ActivePage

The active page. Shorthand for ActiveDocument.ActivePage.

Signature

app.ActivePage

Notes

The active page. Shorthand for ActiveDocument.ActivePage.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
page = app.ActivePage                   # active page
print("Page width: ", page.SizeWidth, " page height: ", page.SizeHeight)
print("Total pages: ", app.ActiveDocument.Pages.Count)

page.Name = "active page"                 # rename it while we are here

About this section: Application

Application — the CorelDRAW application object.

Other entries in this section