We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

CSV workbook creation

Hi,


I want to specify the delimiter of a CSV file before creating the workbook.
How to do that ?

Thanks in advance.


Hi,


Thanks for your query.

See the following sample code segment for your reference:
e.g
Sample code:

TxtLoadOptions options = new TxtLoadOptions(LoadFormat.CSV);
options.setSeparator(’,’);
Workbook workbook = new Workbook(stringFilePath, options);

Moreover, you may use TxtSaveOptions class and specify your desired options while saving/ converting to CSV file format.

Hope, this helps a bit.

Thank you.

Thanks for the prompt reply.

Hi,


You are welcome. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

Thank you.