Re: Using SCFunctionAccess::callFunction from Python

2025-03-11 Thread Thorsten Behrens
Hi Sebastian, Sebastian Henschel wrote: > Does anybody know of a faster way how to duplicate a complete document in > memory? I can post my testing code if you like (not the document, tho). > First thing that comes to mind here, is Collabora Online's approach to run all of the LibreOffice bootstra

Re: Using SCFunctionAccess::callFunction from Python

2025-03-11 Thread Basile Starynkevitch
On Thu, 2025-03-06 at 10:45 +0100, Sebastian Henschel wrote: > Hi there! > > As this does not concern the development of LibreOffice directly, it is > about software development or rather using an LO API. > Please send me elsewhere if this is not the appropriate place. > I was doing some reasearc

Re: Using SCFunctionAccess::callFunction from Python

2025-03-11 Thread Sebastian Henschel
Hello again! Am 07.03.25 um 08:37 schrieb Sebastian Henschel: Am 06.03.25 um 15:17 schrieb Noel Grandin: On 3/6/2025 11:45 AM, Sebastian Henschel wrote: Using the UNO bridge via Python seems to work, but loading the Excel file takes about 25s which is unacceptable to be run on each web requ

Re: Using SCFunctionAccess::callFunction from Python

2025-03-06 Thread Mike Kaganski
On 3/7/2025 12:37 PM, Miklos Vajna wrote: That would be pretty difficult, all of the LibreOffice code assumes that you loaded a document via the normal load process. Calling them without having first established that context is going to be rough. Though you can always "load" the special "privat

Re: Using SCFunctionAccess::callFunction from Python

2025-03-06 Thread Sebastian Henschel
Hey Noel et al! Am 06.03.25 um 15:17 schrieb Noel Grandin: On 3/6/2025 11:45 AM, Sebastian Henschel wrote: Using the UNO bridge via Python seems to work, but loading the Excel file takes about 25s which is unacceptable to be run on each web request. My first though, would be o load the Exce

Re: Using SCFunctionAccess::callFunction from Python

2025-03-06 Thread Miklos Vajna
Hi, On Thu, Mar 06, 2025 at 04:17:16PM +0200, Noel Grandin wrote: > > The hope is that SCFunctionAccess::callFunction (from > > core/sc/source/ui/unoobj/funcuno.cxx) can do that for me. > > To be able to use that from Python, i could wrap it using boost::python > > or swig. Does anyone have exp

Re: Using SCFunctionAccess::callFunction from Python

2025-03-06 Thread Noel Grandin
On 3/6/2025 11:45 AM, Sebastian Henschel wrote: Using the UNO bridge via Python seems to work, but loading the Excel file takes about 25s which is unacceptable to be run on each web request. My first though, would be o load the Excel file once, via LibreOffice, when your Django server sta