Creating MS Word and MS Excel Reports , please help

Hi all.

I am using SQL Server 2000 and Java and will want to retrieve data from the database and create MS Word and MS Excel report, so can please any one assist in this regard, maybe by specific sudes with tutorials or some sample codes. I have tried to google it around without any success.

Thanks in advance

Cheers.

[343 byte] By [Maba@ULa] at [2007-11-27 11:12:32]
# 1

MS Excel reports may be created with Apache POI.

http://wldj.sys-con.com/read/185302.htm

dvohra09a at 2007-7-29 13:55:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

i suggest try to use jexcel API.

try to search in google.:-P

lesbona at 2007-7-29 13:55:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3

Hi,

Take one working jsp files. simple only one work

remove this line -<%@ page contentType="application/html"%>.

Use this line -<%@ page contentType="application/vnd.ms-excel"%>.

And execute the jsp files

let me know working or not.

thanks

digisourcea at 2007-7-29 13:55:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4

If you're doing that, then you're a fake developer.

BalusCa at 2007-7-29 13:55:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5

Thanks for your comment

If you know -how to create excel means then you explain here or please shut-up .....

This solution is working fine.

digisourcea at 2007-7-29 13:55:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 6

The Apache POI and the JExcel are already mentioned.

Excel can parse plain HTML tables, but that's just bad use of it. How about saving and editing?

BalusCa at 2007-7-29 13:55:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 7

Easliy you can specify which location excel file can save.

digisourcea at 2007-7-29 13:55:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...