Grid2HTML

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Grid2HTML

Post 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 4300 times
Grid2HTML.zip
(4.12 KiB) Downloaded 298 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Grid2HTML

Post by EduardoLuis »

Thanks Rathi:

Nice and usefull sample.-
With regards.
Eduardo
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: Grid2HTML

Post by Steed »

thanks
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Grid2HTML

Post 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
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Grid2HTML

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Grid2HTML

Post by bpd2000 »

Nice contribution
BPD
Convert Dream into Reality through HMG
User avatar
serge_girard
Posts: 3158
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Grid2HTML

Post by serge_girard »

Thanks Rathi !

Serge
There's nothing you can do that can't be done...
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: Grid2HTML

Post by quartz565 »

Thank you Rathi !
Best Regards,
Nikos.

os: Windows Server 2019 - 64
Post Reply