|
1 | 1 | --- |
2 | | -title: Handling Empty Cells with RadSpreadStreamProcessing During Excel Import |
| 2 | +title: Handling Empty Cells with RadSpreadStreamProcessing |
3 | 3 | description: This article demonstrates how to manage empty cells when importing an Excel file into a DataTable using RadSpreadStreamProcessing. |
4 | 4 | type: how-to |
5 | | -page_title: How to Handle Empty Cells with RadSpreadStreamProcessing in Excel Import |
| 5 | +page_title: How to Handle Empty Cells with RadSpreadStreamProcessing |
6 | 6 | slug: handle-empty-cells-radspreadstreamprocessing |
7 | | -tags: radspreadstreamprocessing, document processing, excel, xlsx, import, datatable, empty cells |
| 7 | +tags: spread, stream, document, processing, excel, xlsx, import, datatable, empty, cells |
8 | 8 | res_type: kb |
9 | 9 | ticketid: 1678225 |
10 | 10 | --- |
| 11 | +<style> img[alt$="><"] { border: 1px solid lightgrey; } </style> |
11 | 12 |
|
12 | 13 | ## Environment |
13 | 14 |
|
14 | | -<table> |
15 | | -<tbody> |
16 | | -<tr> |
17 | | -<td>Product</td> |
18 | | -<td>RadSpreadStreamProcessing for Document Processing</td> |
19 | | -</tr> |
20 | | -</tbody> |
21 | | -</table> |
| 15 | +| Version | Product | Author | |
| 16 | +| ---- | ---- | ---- | |
| 17 | +| 2025.1.205| RadSpreadStreamProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| |
22 | 18 |
|
23 | 19 | ## Description |
24 | 20 |
|
25 | | -When importing an Excel file into a DataTable using RadSpreadStreamProcessing, empty cells are skipped, resulting in misalignment of the data with the columns. This article explains how to correctly handle empty cells during the import process, ensuring data is accurately represented in the DataTable. |
| 21 | +When importing an Excel file into a [DataTable](https://learn.microsoft.com/en-us/dotnet/api/system.data.datatable?view=net-9.0) using [RadSpreadStreamProcessing]({%slug radspreadstreamprocessing-overview%}), empty cells are skipped, resulting in misalignment of the data with the columns. This article explains how to correctly handle empty cells during the import process, ensuring data is accurately represented in the DataTable. |
26 | 22 |
|
27 | | -This knowledge base article also answers the following questions: |
28 | | -- How to import an Excel file into a DataTable with empty cells using RadSpreadStreamProcessing? |
29 | | -- How to ensure data integrity when empty cells are present in an Excel import? |
30 | | -- What approach can be used to include empty cells during Excel file import into a DataTable? |
| 23 | + |
31 | 24 |
|
32 | 25 | ## Solution |
33 | 26 |
|
@@ -80,6 +73,5 @@ This code iterates through each cell in the imported rows. If a cell is skipped |
80 | 73 |
|
81 | 74 | ## See Also |
82 | 75 |
|
83 | | -- [RadSpreadStreamProcessing Overview](https://docs.telerik.com/devtools/document-processing/libraries/radspreadstreamprocessing/overview) |
84 | | -- [Import and Export to Excel File Formats](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/formats-and-conversion/import-and-export-to-excel-file-formats/xls/xlsformatprovider) |
85 | | -- [Using DataTableFormatProvider](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/formats-and-conversion/data-table/using-data-table-format-provider#export) |
| 76 | +- [RadSpreadStreamProcessing]({%slug radspreadstreamprocessing-overview%}) |
| 77 | +- [Import Excel File Formats with RadSpreadStreamProcessing]({%slug radspreadstreamprocessing-import%}) |
0 commit comments