Create Report

574
2
09-23-2010 12:53 PM
KeithSandell
New Contributor III
Does anyone know if there is some out-of-the-box way, or some not-so-out-of-the-box way, to create a report in/from the JS API?

A user wants some summary statistics returned to the browser, which is easy enough...I can just display it as html.

But I would like to look at creating a printable report.

Any thoughts?

Thanks!
0 Kudos
2 Replies
MarcelKleinmann
New Contributor
hi ksandy,

which kind of report do you like to create? The way you have the statistics in html right now, you can print them as well, can you?

If you are looking for some format which is easy to print, I would suggest to create a pdf file of your statistics. For this you can use a pdf api like iText api.

Or if you like to include the map in your pdf file, there is a map2pdf service for the ArcGIS API for JavaScript, which uses the iText api aswell.

Cheers
0 Kudos
KeithSandell
New Contributor III
Thanks for the thought on PDF.

I now remember hearing about that a while ago, but it slipped my mind along a number of things...

The user can print html, but its just not as pretty.

So I'll give the map2pdf a whirl.
0 Kudos