Column width style lose when converting .xls to csv - excel

I am exporting an .xlsx document to .csv but I during that conversion I am loosing the complete style. Column width style is loosing terribly I was using Mac OS Numbers app but If i remember it correctly same issue happened with Microsoft excel ( I do not have the windows machine to cross check that for the moment).
original excel image
Exported csv image
I was wondering whether this is an application related issue or is it something wrong in general.
Did anyone face the same issue ? I do not have idea about where to begin to solve the styling issue. Some pointer will be greatly appreciated.
I added apache poi tag because I created the original excel using apache-poi

CSV stands for "Comma Separated Value".
CSV is a text file. Basically, you can open it with Excel or with a basic text editor. It is not made for storing formatting.
If you need to deal with formatted table then you have to choose another format.

Related

Generating a CSV file

I am having problems converting an MSaccess table that contains a 12 digits barcode-number field to CSV file
The barcode field is defined as text!
I tried exporting to Excel and saving the Excel file to CSV or exporting it to CSV But but that did not work either (even when the field is defined as text).
The problem is that some barcodes start with zero which gets truncated and that displays a scientific notation instead of displaying the barcode string.
My Question is: How can I generate a CSV file that is stored as an Excel spread sheet?
any help is appreciated
Dory
Nick McDermaid thanks for your comment. When looking in a text editor everything looks perfect.....You mean the people requesting it on my website are actually using it as text file and do not care about the way it looks in a spread sheet? if so then I am just chasing a wild goose! is that what you mean?

Excel .CSV File UTF -8 Encoding not working

I've got an application that exports a .CSV file with many data, however every time where there is an accent, the files changes the letter to $#231;,
Already converted the file and the text to UTF-8 and it does not fix the problem
Tried the conversion with Excel and also Open Office without success.
Does anybody have any idea how to fix this issue ?
Follow an example of wrong data extracted (the text is in Brazilian language):
Lol, after i paste the wrong data in the StackOverflow text to post, the data convert to the correct data.
Anybody has any idea ?
Data Conversion Correctly

Vba-Excel How to generate XML file from a SpreadSheet of Excel?

I have been searching for the logic to convert the SpreadSheet data of an excel into XML format.
I have the thousands of data like shown below. i want to convert this into XML format.
Anyone please help me, any help would be appreciated greatly.
According to the screenshot, your Excel version allows to save your document using XML Spreadsheet 2003 format: Save As... > Other Formats and locate it in the dropdown (at least for Excel 2007 it works as described).
Resulting XML will contain much of the native Excel Workbook fields and nodes, but they're might be easily removed using any more or less advanced XML editor, e.g. Altova XMLSpy or any similar. However, cleanup depends entirely on your further needs.
For your convenience may see sample Excel book and XML generated from it as described above: https://www.dropbox.com/s/kxmxu2tq52y4m9b/ExcelToXML.zip
Good luck!

Converting handwritten number to text

I need to convert a pdf form that contains a column of handwritten numbers to text and populate an excel spreadsheet.
Does anyone know of a program or a solution to solve this problem?
Thanks in advance.
Edit:
I have tried programs like pdfcompressor, but its returning me random symbols. Im assuming numbers should be easier to convert than random letters.
If you have a version of Microsoft Office from XP to 2007, you can use Microsoft Office Document Imaging. It is a PDF viewer-like program. Once you open your image file, you can use your mouse icon to crop and highlight sections of the image. You can then copy and paste the highlighted section into Excel using the built-in OCR software.
You'd need an OCR program (google OCR) to interpret the handwritten text/numbers. But that would then only give you a raw text or .doc file, not an excel sheet. You'd need to manually move the numbers across - might still be better than keying them in, if you're looking at a very large list.
Abbyy Finereader would be the first place to start. It has support for machine printed and hand printed OCR and comes with a nice GUI interface. You should be able to download a trial version from www.abbyy.com. It will be able to export to all sorts of formats. If you need an SDK then Kadmos from www.rerecognition.com supports hand and machine print OCR.

CSV Exporting: Preserving leading zeros

I'm working on a .NET application which exports CSV files to open in Excel and I'm having a problem with preserving leading zeros when the file is opened in Excel. I've used the method mentioned at http://creativyst.com/Doc/Articles/CSV/CSV01.htm#CSVAndExcel
This works great until the user decides to save the CSV file within Excel. If the file is opened again in Excel then the leading zeros are lost.
Is there anything I can do when generating the CSV file to prevent this from happening.
This is not a CSV issue.
This is Excel loving to play with CSV files.
Change the extension to something else.
As #GSerg mentions, this is not a CSV issue.
If your users must edit/save in Excel they need to select the entire worksheet, right-click and choose "Format Cells" and from the Category list select "Text" after opening the csv file. This will preserve the leading zeros since the numbers will be treated as simple text.
Alternatively, you could use Open XML SDK 2.0, or some other Excel library, to create an xlsx file from your csv data and programmaticaly set the Cell type to Text in order to take the end users out of the equation...
I found a nice way around this, if you add a space anywhere along the phone number, the cell is then not treated as number and is treated as a text cell in both Excel and Apple's iWork Numbers.
It's the only solution I've found so far that plays nice with Numbers.
Yes I realise the number then has a space, but this is easy to process out of large chunks of data, you just have to select a column and remove all spaces.
Also, if this is web related, most web type things are ok with users entering a space in the number field. E.g you can tap-to-call on mobiles.
The challenge is to get the space in there in the first place.
In use:
01202123456 = 1202123456
but
01202 123456 = 01202 123456
Ok, new discovery.
Using Quick Preview on Mac to view a CSV file the telephone column will display perfectly, but opening the file fully with Numbers or Excel will ruin that column.
On some level Mac OS X is capable of handling that column correctly with no user meddling.
I am now working on the best/easiest way to make a website output a universally accepted CSV with telephone numbers preserved.
But maybe with that info someone else has an idea on how to make Numbers handle the file in the same way that Quick Preview does?

Resources