MathNya / umya-spreadsheet

A pure rust library for reading and writing spreadsheet files
MIT License
276 stars 44 forks source link

Sheet1 exists by default #55

Closed KyGost closed 2 years ago

KyGost commented 2 years ago

Is there a way to make it so that "Sheet1" isn't created by default?.. I figure this might be a limitation where at least 1 sheet is required. But it would be great if this weren't needed.

MathNya commented 2 years ago

At least one worksheet must be at least one worksheet to be able to open it in Excel.

For those who will add more worksheets later We can provide a function to generate a new spreadsheet that does not contain a worksheet.

KyGost commented 2 years ago

For those who will add more worksheets later We can provide a function to generate a new spreadsheet that does not contain a worksheet.

That would be great!

MathNya commented 2 years ago

We have prepared it here. https://github.com/MathNya/umya-spreadsheet/blob/5e59501e8f2da176e58860df75e5a9bef603f6f6/src/lib.rs#L157-L173

KyGost commented 2 years ago

Working well, thanks!