ms word - N page break object after running add_break method fails -
i'm having problem python-docx library. i'm following page's example doesn't seem work. can provide assistance?
>>> all_runs[0] <docx.text.run object @ 0x7f49b899c5d0> >>> play=all_runs[0] >>> play.add_break(wd_break.page) >>> play.breaks traceback (most recent call last): file "<stdin>", line 1, in <module> attributeerror: 'run' object has no attribute 'breaks'
that page part of design documentation, not as-built documentation (notice title 'candidate' protocol). there no breaks
property implemented on run
yet.
if can bit you're trying accomplish may able help.
Comments
Post a Comment