Home/ Reference/ Document

doc.PrintOut()

Prints. Takes a PrintOptions object; you won't need it day to day.

Signature

doc.PrintOut()

Notes

Prints. Takes a PrintOptions object; you won't need it day to day.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
layer = doc.ActivePage.ActiveLayer
layer.CreateRectangle2(0, 0, 100, 60)   # put something on the page or you will not see a result

doc.PrintOut()                          # send to the default printer with current print settings
print("Print job sent")

About this section: Document

Document — documents and file handling.

Other entries in this section