Skip to content

Conversation

@xperseguers
Copy link

@xperseguers xperseguers commented Aug 29, 2024

ExcelSheet::writeFormula()

This enables creation of formula with arbitrary precalculated value to make preview and others show content instead of a "blank cell".

This effectively shall drop limitation in the README (https://github.com/doPhp/excel?tab=readme-ov-file#formulas-written-but-no-values-readable) that suggests to open file in Excel via COM and save back.

Implementation of the C methods:

  • xlSheetWriteFormulaNum
  • xlSheetWriteFormulaStr
  • xlSheetWriteFormulaBool

ExcelSheet::setTabRgbColor()

Similarly to the existing method ExcelSheet::setTabColor(), this allows an arbitrary RGB color to be used for a sheet.

Implementation of the C method:

  • xlSheetSetTabRgbColor

Misc

  • Class documentation has been reformatted using PSR-12 (minor typo in comment fixed as well)
  • Documentation has been extended to specify that methods ExcelSheet::readComment() and ExcelSheet::writeComment() only work for .xls files (not .xlsx). This is stated in the LibXL documentation but wasn't specified explicitly in the PHP documentation

This is mapped to following methods from LibXL:

- xlSheetWriteFormulaNum()  - precalculated double value
- xlSheetWriteFormulaStr()  - precalculated string value
- xlSheetWriteFormulaBool() - precalculated bool value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant