LibreOffice Calc not computing functions (showing function, not output)

:+1: Found this thread looking searching for functions not computing. Thanks for the info on the cached values. Will dig into my generator software and see if there is anything I can do to disable this.

import xlsxwriter

# Create a workbook and add a worksheet.

with xlsxwriter.Workbook('Expenses01.xlsx') as workbook:
    worksheet = workbook.add_worksheet('Tab33')

    # Some data we want to write to the worksheet.
    items = ('Rent','Gas','Food','Gym','Total')
    values = (1000, 100, 300, 50, '=sum(B1:B4)' )

    for c, data in enumerate((items, values)):
        worksheet.write_column(0, c, data=data)
1 Like

That in a comment says “It then sets a global flag in the XLSX file to say that all formulas and functions should be recalculated when the file is opened”. Which here is <workbook> child

  <calcPr calcId="124519" fullCalcOnLoad="1"/>

Calc so far does not evaluate that and probably could.

Update 2022-08-08T16:27+02:00
This is tdf#144819.

1 Like

… which then could allow us to add “Follow document setting” to the “recalculate on load” option - and make it the default :slight_smile: