Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread JavaScript reporting tools
Thu, Feb 10 2022 1:44 PMPermanent Link

erickengelke

Avatar

Does anyone have any ideas on web (hopefully Javascript based) reporting tools.

I've ported Pivottablejs and also WebDataRocks to EWB, but both are more for allowing someone to model their data interactively... letting you play with the data.  We could really use a report making tool rather than hand crafting reports.

EWB users use a diverse set of server back ends.  So a JS based tool would be more a universal solution than something in Delphi, .NET, PHP, Node, etc.

I'm hoping someone has seen something that might be useful in this regard.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Thu, Feb 10 2022 3:02 PMPermanent Link

Trinione

https://reportman.sourceforge.io/
ReportMan has been around many years.
- Report Designer and TCP-enabled Report Server
- TeeChart (recompile app with {$DEFINE USETEECHART})
- This one is not JavaScript, but it may be of all-round interest to you and others.
- Much of the content on the site is dated, with updates to text in just a few areas. For example, it states that PDF viewing can be done with a plugin. Errrr, it can be done in most browsers. At times that is a sign of a good product as this is a Report Designer and Report Server, so hi!
- Long list of impressive features can be found at:
 https://reportman.sourceforge.io/doc/features.html


https://github.com/jsreport/jsreport
- For a pure JS option there is JSReport.
- However, based on the license payment shall be required for non-personal use.


https://limereport.ru/en/index.php
- There is also LimeReport.
- It uses QJSEngine, so code can be written in JavaScript.
- Similar to ReportMan above, however I don't know if it has the Server ability. Not seeing that on their website.


https://printjs.crabbly.com/
PrintJS
- Examples on their webpage
- A tiny javascript library to help printing from the web.
- 'Print.js was primarily written to help us print PDF files directly within our apps, without leaving the interface, and no use of embeds. For unique situations where there is no need for users to open or download the PDF files, and instead, they just need to print them.

One scenario where this is useful, for example, is when users request to print reports that are generated on the server side. These reports are sent back as PDF files. There is no need to open these files before printing them. Print.js offers a quick way to print these files within our apps.'
- 'Print selected parts of a HTML page. With Print.js, we can easily pass the id of the element that we want to print. The element can be of any tag, as long it has a unique id. The library will try to print it very close to how it looks on screen, and at the same time, it will create a printer friendly format for it.'
- Image Printing
- JSON Printing
Thu, Feb 10 2022 3:17 PMPermanent Link

Trinione

Erick,
This actually may be more in line with what you are referring to.

So, one can create a report using HTML/CSS/JS and then print it with this and even the PrintJS mentioned above for a direct to print option.


https://ekoopmans.github.io/html2pdf.js/
html2pdf.js
- Converts any webpage or element into a printable PDF
- Entirely client-side using html2canvas and jsPDF.

As they are related:
https://parall.ax/products/jspdf
jsPDF
- The leading HTML5 client solution for generating PDFs. Perfect for event tickets, reports, certificates, you name it!


https://github.com/niklasvh/html2canvas
html2canvas
- Allows you to take "screenshots" of webpages or parts of it, directly on the users browser.
NOTE: The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.
Mon, Feb 14 2022 4:45 PMPermanent Link

erickengelke

Avatar

Trinione wrote:

Erick,
>This actually may be more in line with what you are referring to.
>
>So, one can create a report using HTML/CSS/JS and then print it with this and even the PrintJS mentioned >above for a direct to print option.

>https://ekoopmans.github.io/html2pdf.js/
>https://parall.ax/products/jspdf
>https://github.com/niklasvh/html2canvas

I tried but found none of these worked for me.  But then I found a different one which does export a good PNG file.  I tried PFD2PNG capabilities of one of them to print one of those PNGs, but it gave a black&white mess.  So currently my library supports export to PNG which at least means you can edit, Email or print it.

Contact me if you are interested.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image