salvois / LargeXlsx

A .net library to write large Excel files in XLSX format with low memory consumption using streamed write.
Other
204 stars 34 forks source link

Writing columns after data and comments #52

Closed AlleSchonWeg closed 2 months ago

AlleSchonWeg commented 3 months ago

Hi, i'm evaluating some libs to create excel spreadsheets. I have to two questions:

Thank you!

salvois commented 3 months ago

Hi @AlleSchonWeg ,

Is it possible to add comments to cells?

This feature is currently not available.

Can i set the columns (x:cols) after the data rows. Because i need to measure the strings in a column and set the width to the largest value?

This is unfortunately not possible: see https://github.com/salvois/LargeXlsx/tree/1.10.0?tab=readme-ov-file#column-formatting Your best bet is estimating your column width for an average use case, or, if you can afford it, enumerate your dataset twice.

Thanks, Salvo