Page 1 of 1

Grid2HTML

Posted: Fri Jan 29, 2016 4:16 pm
by Rathinagiri
Dear HMG Friends,

I wanted to export grid data to a simple HTML Report that can be attached to an email. Here is a small utility to do that.

HTML Gurus, please give your comments and suggestions.

I am in the process of adding SVG elements to draw charts inside native html which enables to see our reports in browsers.

This is the syntax to call this.

Code: Select all

 _grid2html( 'grid_2', 'form_1', 'report.html', { 'Report Header 1', 'Report Header 2', 'Report Header 3' } )
 
Grid2Html.jpg
Grid2Html.jpg (76.87 KiB) Viewed 4627 times
Grid2HTML.zip
(4.12 KiB) Downloaded 321 times

Re: Grid2HTML

Posted: Fri Jan 29, 2016 4:32 pm
by EduardoLuis
Thanks Rathi:

Nice and usefull sample.-
With regards.
Eduardo

Re: Grid2HTML

Posted: Sat Jan 30, 2016 2:19 am
by Steed
thanks

Re: Grid2HTML

Posted: Sat Jan 30, 2016 4:24 am
by dragancesu
Nice

If you're looking for suggestions here they are

For the column header is used <TH> tag
CSS is a good solution, but it's better to be out HTML file (for more experienced)
if the planned print report then and it can be defined in css

Dragan

Re: Grid2HTML

Posted: Sat Jan 30, 2016 5:58 am
by Rathinagiri
Thank you Dragan. I am now learning CSS & HTML. I wanted to have the report in a single file. That's why I have included in the same file. I will try to separate CSS out.

Re: Grid2HTML

Posted: Sat Jan 30, 2016 7:07 am
by bpd2000
Nice contribution

Re: Grid2HTML

Posted: Sat Jan 30, 2016 8:59 am
by serge_girard
Thanks Rathi !

Serge

Re: Grid2HTML

Posted: Sat Jan 30, 2016 2:43 pm
by quartz565
Thank you Rathi !