General report format

A report is generated in my business application. A report usually consists of:

  • general heading (left, right and center)
  • several paragraphs describing the parameters used
  • table title
  • table data
  • page footer
  • page title
  • report footer

There are at least 2 known requirements for the output report format:

  • excel file (xls (x)) - it ignores some sections, but will definitely include the table header and table data.
  • Pdf

Now I want my program to create a report in a common format. Then the next module will output the result in one of the known output formats, taking additional optional parameters, such as font size and face. Today there are 2 output formats, but more may soon appear such as html.

In what format should I generate a report?

I believe this will be a file or equivalent memory structure. Together with the format, I would expect suggestions on the use of tools and technologies. I will only choose an open source solution, but if you want to give other tips, it will also be useful.

My programming environment is java, but if possible, I would like to leave this choice open.

One of my ideas is to define something ordinary, mine, from scratch. I know how to do this, but first I would like to have an overview of the general turnkey solutions. This is where I ask you for help.

+4
source share
1 answer

Take a look at jasperreports . It can generate many formats. And you will get a lot of community support.

+1
source

Source: https://habr.com/ru/post/1437530/


All Articles