Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Thu Jun 02, 2016 12:45 pm

Hello,

I want to export a huge excel worksheet to a text file.

I'm using the following command :
Code: Select all
worksheet.SaveToFile(destination & "\" & "prices.txt", vbTab, encoder)


This is working however Spire is adding double quotes aroud every string of the file.

Is there a way to simply obtain raw data without those quotes ?

Thanks for your help on this.

Regards,

G

Greenlynx
 
Posts: 1
Joined: Thu Jun 02, 2016 11:39 am

Fri Jun 03, 2016 6:10 am

Hi G,

Thank you for inquiry.
Sorry that at present our product doesn't support the feature. I recommend you to save the text and then remove these double quotes from the text file.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Wed Aug 26, 2020 1:19 pm

Hi,

Can we remove double quotes after converting to CSV in a existing code?

Workbook workbook = new Workbook();

workbook.LoadFromFile(sourceFile.FullName);

Worksheet sheet = workbook.Worksheets[0];

//Worksheet worksheet = workbook.Worksheets[0]; sheet.InsertColumn(1);

sheet.SaveToFile(sourceFile.FullName.Replace(".xls", ".csv"), "|", Encoding.ASCII);


if yes then how?

Please reply

gauti0710
 
Posts: 22
Joined: Thu Aug 06, 2020 2:12 pm

Thu Aug 27, 2020 8:40 am

DO you have any answer for this?

gauti0710
 
Posts: 22
Joined: Thu Aug 06, 2020 2:12 pm

Thu Aug 27, 2020 9:39 am

Hi,

Thanks for your post.
What you want is to remove all double quotes in the csv file generated after conversion, as shown in the following figure right? If so, we are sorry that our Spire.Xls does not have a direct way to achieve it.

Sincerely,
Lynn
E-iceblue support team
Attachments
test.png
test.png (30.38 KiB) Viewed 1328 times
User avatar

lynn.zhang
 
Posts: 57
Joined: Mon Jul 27, 2020 2:27 am

Thu Aug 27, 2020 9:43 am

Oh Ok thanks for confirming

gauti0710
 
Posts: 22
Joined: Thu Aug 06, 2020 2:12 pm

Thu Aug 27, 2020 9:48 am

Hi,

Thanks for your reply.
If you encounter any issues related to our products in the future, just feel free to contact us. Wish you all the best!

Sincerely,
Lynn
E-iceblue support team
User avatar

lynn.zhang
 
Posts: 57
Joined: Mon Jul 27, 2020 2:27 am

Return to Spire.XLS