+ Start a Discussion
Naznin VhoraNaznin Vhora 

How to Convert Excel File into CSV using Apex ?

Hi All,
I have a requirement in my code where I need to convert uploaded Excel file into CSV.
Can anyone tell me how to do this ?

Thanks and Regards,
Naznin
Anuj Joshi 42Anuj Joshi 42
Hi Naznin,

Please refere this link http://www.sfdcpoint.com/salesforce/import-csv-file-using-apex-visualforce/

Thanks,
Anuj
Naznin VhoraNaznin Vhora
Hi Anuj,
I know how to parse CSV File.
My Query is that , How to convert Excel File Into CSV through Apex code.
Anuj Joshi 42Anuj Joshi 42
Hi Naznin,

Did you try using ontentType="text/csv#test.csv

Thanks,
Anuj
Naznin VhoraNaznin Vhora
Hi Anuj,
No, Where to use such?? please, give some example.
David Nash 8David Nash 8
Hi,

Try the X version of Excel Converter to convert to CSV using APEX. You can check it out here: https://www.coolutils.com/TotalExcelConverter