[Solved] Suppress screen redrawing to improve performance

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
jwharton
Posts: 4
Joined: Wed Nov 09, 2022 5:18 am

[Solved] Suppress screen redrawing to improve performance

Post by jwharton »

I there a way to make it so that the document being modified by a macro or through API programming suspends doing any extra work to format and paint the contents in the open writer instance? I am running a document building program and it really is slow due to the visual stuff bogging it down. I'd like it to just blast in all the contents and then do a reformat and a repaint once every significant portion of the document is loaded.

Thanks,
Jason Wharton
Last edited by MrProgrammer on Sun Mar 26, 2023 6:15 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
LibreOffice 6.2.3.2 on Windows 64
JeJe
Volunteer
Posts: 2785
Joined: Wed Mar 09, 2016 2:40 pm

Re: Suppress screen redrawing to improve performance

Post by JeJe »

lockcontrollers stops the document display refreshing - some of it anyway.

https://www.openoffice.org/api/docs/com ... ontrollers
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Post Reply