How to convert an excel file to .csv file?

可紊 提交于 2020-01-03 17:52:14

问题


I'm developping an application for Honeywell Dolphin 6100, a mobile computer with a barcode scanner that uses Windows CE 5.0 like OS.

I want to create a little application responsible of the convertion of an excel file to .csv file.

Is it possible in Win CE ? if so, any help on it ?

thank you in advance !!

Note: I'm using VS2008 and I'm working on Windows 7.


回答1:


You can do this by using saveas() method in Excel:

wbexceltocsv.SaveAs("c:\Filename.csv", Microsoft.Office.Interop.Excel.XlFileFormat.xlCSV)

Follow link:

http://www.c-sharpcorner.com/UploadFile/yuanwang200409/how-to-convert-xls-file-into-csv-file-in-C-Sharp/

As well this link can be helpful to you:

http://www.codeproject.com/Articles/246772/Convert-xlsx-xls-to-csv




回答2:


There's no reasonable way to do this on a Windows CE device. Presumably the CSV file is coming from a PC, so you must convert it on the PC (using an interop library or tool) before sending to the device.



来源:https://stackoverflow.com/questions/15783667/how-to-convert-an-excel-file-to-csv-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!