I can not get rid of it.
There are no characters on it or anything else, for that matter.
Edit: Changed subject, was Delete blank pages Make your post understandable by others -- MrProgrammer, forum moderator |
Edit: Changed subject, was Delete blank pages Make your post understandable by others -- MrProgrammer, forum moderator |
Code: Select all
Sub RemoveLastParagraph
txt = thiscomponent.text
tc =txt.createtextcursorbyrange(txt.end)
tc.createenumeration.nextelement.dispose
End Sub
2016 topic [Solved] Undeletable page when filling whole page with table suggests that the page which the macro deletes will return if the document is saved and reopened. A test with OpenOffice 4.1.7 confirms that behavior. OpenOffice adds a paragraph to hold the table when the document is opened, so the unwanted page will return. Either use Format → Character → Font → Size → 2 or Format → Character → Font Effects → Hidden. If the unwanted page is only a problem when printing, just tell your printer driver not to print it.