You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've developed code to enter the content before the last page of the input Word document I provide. Now to add the content before the last page I've added the above code and it is failing with the below issues.
Hi,
I am adding a page with a heading (but not a header) before the last page of the existing Word document. And for this, I used the code below.
I've developed code to enter the content before the last page of the input Word document I provide. Now to add the content before the last page I've added the above code and it is failing with the below issues.
Error for adding heading:
AttributeError: 'Section' object has no attribute 'add_heading'**
Error for adding paragraph:
AttributeError: 'Section' object has no attribute 'add_paragraph'**
Note that i don't want to start off with paragraph instead i want to start off with heading in the new insert page.
Can someone please help me with this issue?
The text was updated successfully, but these errors were encountered: