| | |
Export/Import Excel in java
![]() |
use a csv extenion on any text file
for example, a file named output.csv
with the following data:
would produce the following in excel,
cell a1: a
cell b1: b
cell c1: c
cell a2: 1
cell b2: 2
cell c3: 3
cell a3: x
cell b3: y
cell c3: z
etc...
every new line is a new row in excel
every comma is a new column in excel
for example, a file named output.csv
with the following data:
Java Syntax (Toggle Plain Text)
a,b,c 1,2,3 x,y,x
would produce the following in excel,
cell a1: a
cell b1: b
cell c1: c
cell a2: 1
cell b2: 2
cell c3: 3
cell a3: x
cell b3: y
cell c3: z
etc...
every new line is a new row in excel
every comma is a new column in excel
Last edited by paradox814; Dec 3rd, 2007 at 4:43 am.
Google POI and/or JExcel
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
- transferrable equation editor fields from word doc (Visual Basic 4 / 5 / 6)
Other Threads in the Java Forum
- Previous Thread: Assignment on java 2 j2sdk1.4.2_04
- Next Thread: Database connectivity to ms-access
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card chat class client code collision component crashcourse css csv database eclipse ee error fractal free game gis givemetehcodez graphics gui html ide image input integer integration j2me japplet java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linux list loan loop machine map method methods migrate mobile netbeans newbie objects oriented output panel phone physics problem program programming project radio recursion reporting scanner se server service set sms socket software sort sql string swing test textfield threads transfer tree trolltech ubuntu utility windows






