Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Commented Unassigned: System.ApplicationException: Column Length must be between 1 and 3. [9206]

$
0
0
When I run this code (there is Data column in my sheet)
```
Console.WriteLine(ws.Cell(2, "Data").GetString());

```

I get this exception
```
Unhandled Exception: System.ApplicationException: Column Length must be between 1 and 3.
at ClosedXML.Excel.XLHelper.GetColumnNumberFromLetter(String columnLetter)
at ClosedXML.Excel.XLAddress..ctor(XLWorksheet worksheet, Int32 rowNumber, String columnLetter, Boolean fixedRow, Boolean fixedColumn)
at ClosedXML.Excel.XLWorksheet.ClosedXML.Excel.IXLWorksheet.Cell(Int32 row, String column)
at ObslugaExcela.Program.Main(String[] args) in e:\DATA\CS-solutions\Polkomtel\ObslugaExcela\ObslugaExcela\Program.cs:line 29

```

I am using .Net 3.5 and ClosedXML 0.69.1.0
Comments: ** Comment from web user: robert_pl **

OK, I've found that I can only give letter marking of the column, not name that I gave to this column.


Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>