Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] FsCells with row#/col# 0/0 are invalid, yet ctor creates them #39

Open
omaus opened this issue Jul 19, 2023 · 0 comments
Open

[BUG] FsCells with row#/col# 0/0 are invalid, yet ctor creates them #39

omaus opened this issue Jul 19, 2023 · 0 comments
Labels
Type: Bug Something is not working, and it is confirmed by maintainers to be a bug.

Comments

@omaus
Copy link
Collaborator

omaus commented Jul 19, 2023

Describe the bug
When creating FsCells with the constructor and not specifying the address, they are given the location row 0, column 0. This is not valid.

To Reproduce
Steps to reproduce the behavior:
1.

#r "nuget: FsSpreadsheet"
#r "nuget: FsSpreadsheet.ExcelIO"

open FsSpreadsheet
open FsSpreadsheet.ExcelIO

let wb = new FsWorkbook()
FsWorkbook.initWorksheet "test" wb
let ws = wb.GetWorksheets().Head

let cell1 = FsCell("test")
ws.CellCollection.Add [cell1]

FsWorkbook.toFile "test.xlsx" wb
  1. Open in MS Excel, see error

Expected behavior
Should initiate with address row 1, col 1.

@omaus omaus added the bug Something isn't working label Jul 19, 2023
@kMutagene kMutagene added Type: Bug Something is not working, and it is confirmed by maintainers to be a bug. and removed bug Something isn't working labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something is not working, and it is confirmed by maintainers to be a bug.
Projects
None yet
Development

No branches or pull requests

2 participants