Closed JulienPalard closed 6 days ago
it would be
with Lo.Loader(Lo.ConnectSocket(headless=True)) as loader:
doc = Lo.open_doc(fnm=ods_file, loader=loader)
calc = CalcDoc(doc)
sheet = calc.sheets["Catégories"]
used_cell_rng = sheet.find_used_range()
array = sheet.get_array(range_obj=used_cell_rng.range_obj)
Better yet
with Lo.Loader(Lo.ConnectSocket(headless=True)) as loader:
doc = CalcDoc.open_doc(fnm=ods_file)
sheet = doc.sheets["Catégories"]
used_cell_rng = sheet.find_used_range()
array = used_cell_rng.get_array()
Ohh sorry for the noise and thanks for the nice answer :)
I'm trying this code:
with
ooo-dev-tools 0.47.17
, I'm getting:(sorry for the short issue, I only had 2mn to write it :D)