report without template

By: Yong Wang - wymz
report without template
2002-11-11 13:37
I have some data, each containing a number of fields, in a collection along with the width and other attributes. I want to display each datum as one row on a report. the fields may change so i can not use a fixed jasper template.

I know I can construct the template on fly, but i still have to compile, fill and generate pdf for the report. This approach will take long time. Since i already have all the data, is there any easier/quicker way just to display the data on the report using jasper report or should i use itext directly? thanks.



By: Teodor Danciu - teodord
RE: report without template
2002-11-11 13:47

Hi,

A reporting tool is not suited for every possible task
and it might be better if you would create your
custom document generator to solve your particular
need, using iText directly.

Before doing so, you might want to take a look
at the supplied "noreport" sample to see how you
could use the JasperReports API to create final
documents.

I hope this helps.
Teodor



By: Yong Wang - wymz
RE: report without template
2002-11-11 14:15
Hi Teodor, I didn't see this sample in my old version of JasperReport. I think I might be able to use JasperPrint to populate with the data and call on JasperExportManager to create the PDF. It seems more straightforward than iText. Thanks again!
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback