Hi Mini,
Thank you for contacting Syncfusion support.
It is not possible to include blank cells in an empty worksheet of Microsoft Excel (CSV format). You can include blank cells only in between cells with values. This is a behavior of Microsoft Excel, XlsIO does the same.
However, you can achieve your requirement by using following code
Code snippet:
sheet["A1:C1"].Text = "blank cells";
sheet["A1:C1"].Text = ""; |
Note: In an empty worksheet, the used range of worksheet will be null in XlsIO. Hence the blank cells are not preserved. By assigning a text to a range, which will be included in used range and its preserve the blank cells.
Regards,
Prakash Kumar