Duplicated
Last Updated: 30 Jan 2025 13:31 by ADMIN
Philip
Created on: 30 Jan 2025 02:37
Category: SpreadProcessing
Type: Bug Report
0
excel import failure with .xlsx

trying to open the attached workbook with this code:

Telerik.Windows.Documents.Spreadsheet.Model.Workbook workbook;
using (Stream input = File.OpenRead("sample.xlsx"))
{
  var provider = new Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx.XlsxFormatProvider();
  // The import method enables you to also pass a byte[] with the XLSX document data
  workbook = provider.Import(input, TimeSpan.FromSeconds(30));
}

I get an unhandled exception:

An unhandled exception of type 'System.ArgumentNullException' occurred in Telerik.Documents.Spreadsheet.dll
Value cannot be null.

Any idea what's going on?

Thank you for your time,

 

Phil

Attached Files:
Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 30 Jan 2025 13:31

Hello, Philip,

I am sorry to hear that you are facing any difficulties when importing an XLSX document with our RadSpreadProcessing library. The provided sample document is greatly appreciated.I was able to replicate the mentioned error on my end as well:

It seems that you hit a known issue which is already available in our public feedback portal. You can cast your vote for the item, track its progress, subscribe for status changes, and add your comments on the following link: SpreadProcessing: ArgumentNullException when importing a document with a conditional formatting rule with no borders

Hence, I have changed the status of this current bug report to Duplicated.

Please excuse us for any inconvenience this issue is causing to your project. Due to the specificity of the issue, I am unable to suggest an appropriate solution. Make sure that you cast your vote for the item in order to increase its priority. I would also encourage you to click the Follow button to get notified for any status changes.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.