Keep Separators for Blank Rows while exporting spreadsheets to CSV format with Golang via C++
Keep Separators for Blank Rows while exporting spreadsheets to CSV format
Aspose.Cells provides the ability to keep line separators while converting spreadsheets to CSV format. For this, you may use the GetKeepSeparatorsForBlankRow() property of the TxtSaveOptions class. GetKeepSeparatorsForBlankRow() is a boolean property. To keep the separators for blank lines while converting the Excel file to CSV, set the GetKeepSeparatorsForBlankRow() property to true.
The following sample code loads the source Excel file. It sets the TxtSaveOptions.GetKeepSeparatorsForBlankRow() property to true and saves it as output.csv. The screenshot shows the comparison between the source Excel file, the default output generated while converting the spreadsheet to CSV, and the output generated by setting GetKeepSeparatorsForBlankRow() to true.