Unplanned
Last Updated: 11 Jan 2024 13:59 by Dev
Dev
Created on: 11 Jan 2024 13:59
Category: SpreadProcessing
Type: Bug Report
0
SpreadProcessing: ArgumentNullException: "Value cannot be null. Parameter name: fromCellReference" when importing a txt file which contains "+" sign

Use the code to import a sample txt file containing a "+" sign in a cell value:

 Workbook workbook;
 Telerik.Windows.Documents.Spreadsheet.FormatProviders.IWorkbookFormatProvider formatProvider = new Telerik.Windows.Documents.Spreadsheet.FormatProviders.TextBased.Txt.TxtFormatProvider();

 using (Stream input = new FileStream(@"sample.txt", FileMode.Open))
 {
     workbook = formatProvider.Import(input);
 }

Expected behavior: the file is imported successfully

Actual behavior: an error is thrown

 

0 comments