HMG GridPlus

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

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

HMG GridPlus

Post by Rathinagiri »

Dear friends,

As you are aware GridPrint is used for printing grid contents and is being included in HFCL. Over a period of time, I have developed many additional libraries to export the grid data to CSV, HTML, PDF etc.,

I wanted to integrate all these features into a single library so that we can use by a simple call to this library and do whatever we want.

I call this library by 'HMG GridPlus'. I am just developing it. This is based on OOP model, since I wanted to give full power to the user of the library. Following is the simple syntax: (See the demo attached)

Code: Select all

oGridPlus := GridPlus():new()
oGridPlus:AddGridData(  'Form_1', 'Grid_1' )
oGridPlus:ReportHeader1( 'This is a header' )
oGridPlus:IncludeDate := .t.
oGridPlus:Export2HTML()
The final library will have the following features:

- Grid/Array Printing (GUI part is getting ready)
- Grid/Array Exporting to CSV/HTML (Finished)
- Inclusion of Report Header/Footer/Report Date/Time (Finished)
- Merge some headers (To be done)
- Summary of data (To be done)
- Grouping of rows (To be done)
- Easy way of selection/sizing of columns for the report. (This is the major change wanted/required in GridPrint. With the help of BosTaurus I have achieved it. :) (see the screenshot). If we can capture the HeaderResizing event and increase the grid width accordingly this feature will be complete).
- Selection/Preparation of Charts (developer predefined/user defined) (planned for the future)
GridPlus1.jpg
GridPlus1.jpg (70.52 KiB) Viewed 5227 times
You can ask a question why do we need an incomplete library?

I want to know about your ideas/suggestions/comments/critics in GUI, features, options, functionality etc.
GridPlus.zip
(11.73 KiB) Downloaded 394 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
serge_girard
Posts: 3162
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMG GridPlus

Post by serge_girard »

Thanks Rathi, very usefull!

Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG GridPlus

Post by Pablo César »

Thank you Rathi for your contribution, looks like great :)

Compiling unsuccess because GridPlus.ch is needed and missing...
If we can capture the HeaderResizing event and increase the grid width accordingly this feature will be complete
This would be more one advanced s...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: HMG GridPlus

Post by quartz565 »

Thank you! very usefull!
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG GridPlus

Post by Pablo César »

Suggestion:

In Arrays converstions, you can use hb_ValToExp() to convert to string in Any2Strg (Esgici´s function) ;)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: HMG GridPlus

Post by Steed »

Gracias
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: HMG GridPlus

Post by Rathinagiri »

Pablo César wrote: Compiling unsuccess because GridPlus.ch is needed and missing...
You can remove that "Include" line in main.prg.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
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: HMG GridPlus

Post by Rathinagiri »

Pablo César wrote:Suggestion:

In Arrays converstions, you can use hb_ValToExp() to convert to string in Any2Strg (Esgici´s function) ;)
Thank you. I will.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

mol

Post by mol »

Great work!
It would be great to have possibility to print browse content...
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG GridPlus

Post by srvet_claudio »

Rathi,
that is cool!
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply