Is it good to convert html reports to any format reports using java ?

HI All,

As of now , i am working in report generation part of my project.

All i need to do is generate reports in excel format.

I have used Apache POI HSSF API to convert my records into excel report.

The problem i have faced is i have to write tight coupled code.

ie) i have to write a code to generate excel reports using HSSF API as tightly coupled.Thing making me to fear is i can't use this report generation module in any other project as it is tightly coupled with data.

I planned to move to JASPER Reports . But there i have to spend lot of time to understand designing configuraion xml files.

What i think is why we should not create html reports for our data and then convert into any other format (Excel ,pdf , etc ) .

Because writing a code to generate a html report is easy and most of

them know about how to write.

We dont have to learn anything specially for designing reports.

Is this a good idea? or else which one is best to generate reports ?

your suggestions and opinions are welcome.

Thanks in advance

nvseenu

[1132 byte] By [nsrininasa] at [2007-11-27 6:51:51]
# 1
Hi All,If the topic which i posted is immaterial , please let me know.I will take necessary steps to close this topic. Please let me know where i can post these type of stuff.Thanks in advance,nvseenu
nsrininasa at 2007-7-12 18:26:23 > top of Java-index,Java Essentials,Java Programming...
# 2

I seriously doubt that you can write a report which is not tightly coupled to something.

Other than that I would suggest that you use an existing report framework rather than trying to roll your own. Myself I can only say that Crystal Reports seemed adequate for all of the projects that I have used it on.

jschella at 2007-7-12 18:26:23 > top of Java-index,Java Essentials,Java Programming...
# 3

Thanks for your reply.

> I seriously doubt that you can write a report which

> is not tightly coupled to something.

Yes. i admit. But what i think is instead of spending time in learning and using report generation configuration files or spending time in generating same reports for different formats ,

why should not we write a tight couple code converting your data to html and then converting those html files to other formats whatever we want.

i hope i clear my points.

please let me know about your opinions on this.

>

> Other than that I would suggest that you use an

> existing report framework rather than trying to roll

> your own. Myself I can only say that Crystal Reports

> seemed adequate for all of the projects that I have

> used it on.

nsrininasa at 2007-7-12 18:26:23 > top of Java-index,Java Essentials,Java Programming...
# 4
html is a bad format for that, generate XML instead.
kajbja at 2007-7-12 18:26:23 > top of Java-index,Java Essentials,Java Programming...