Grid2Print - Suggestions

Source code related resources

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:

Grid2Print - Test Version

Post by Rathinagiri »

This is a Test Version of Grid2Print. It is just raw and I have to work a lot to be more generic. It is just out of curiosity and to have some suggestions I am sharing this with you. Don't get afraid on seeing my BAD programming skills. Believe me I am just an accountant by profession and not a professional programmer.

Unzip the contents into a folder and build the gridprint.hpj using the latest HMG IDE.

I used a constant (0.07) to convert a logical unit to points. It seems to work well. I don't know what the logic would be behind this number.

GridPrint test version can be downloaded from here.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Grid2Print - Test Version

Post by esgici »

Hi Rathinagiri
rathinagiri wrote:This is a Test Version of Grid2Print.
Good job, thanks :)
...It is just out of curiosity
We need such util: "A generic report generator". I hope this will be begining of development.
I am not a professional programmer
No matter profession, you are a good programer. There are many worst profesional ;)
I used a constant (0.07)
Talk me about it ! We need either a function such as

LenStrInPixel( <cString>, <aFont> ) --> <nLengthInPixel> (*)

or adequatly learning logic would be behind this topic.

(*) <aFont> : Font properties array: name, size, bold, italic ...

Anyway, many thanks to your offer.

Regards
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Grid2Print - Test Version

Post by Roberto Lopez »

rathinagiri wrote:This is a Test Version of Grid2Print. [/url].
I've just took a brief look at it, but it looks great!

Good Job!

I'll do more test in the weekend.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Grid2Print - Test Version

Post by Roberto Lopez »

rathinagiri wrote:This is a Test Version of Grid2Print. <...>
All my test goes ok excepting landscape printing. It appears to not be centered.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
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: Grid2Print - Suggestions

Post by Rathinagiri »

I had taken the left margin as given (or default 20 mm) by the user. Therefore, the page is not centered.

I will fix it and upload.

Thanks for the suggestion.
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: Grid2Print - Suggestions

Post by Rathinagiri »

Hi Friends,

Here comes the latest version of GridPrint with some bug fixes and changes:

The latest version can be downloaded from here. (9K)

Change log:

1. Blueprint preview for GridPrint
2. Tabbed Interface for better arrangement of controls
3. Vertical Page Center option

Please verify and give your valuable suggestions.

Here is the screenshot. :)

Image
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Grid2Print - Suggestions

Post by Roberto Lopez »

rathinagiri wrote:Hi Friends,

Here comes the latest version of GridPrint with some bug fixes and changes:

The latest version can be downloaded from here. (9K)

Change log:

1. Blueprint preview for GridPrint
2. Tabbed Interface for better arrangement of controls
3. Vertical Page Center option

Please verify and give your valuable suggestions.

Here is the screenshot. :)

Image
Very impressive!!!

Thanks!!!

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
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: Grid2Print - Suggestions

Post by Rathinagiri »

Thank you Roberto. It is just a beginning. Long way to go.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Grid2Print - Suggestions

Post by esgici »

Hi Rathi

More advanced than previous, thanks.

Do you think formatting numeric fields ?

Regards

--

esgici
Viva INTERNATIONAL HMG :D
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: Grid2Print - Suggestions

Post by Rathinagiri »

Hi Esgici,

Thanks.

As of now, I take everything as entered in Grid and that too only string item grids.

Writing the code for others too.

By formatting you mean, formatting the numbers as given by the user as parameter for the function? Please give me syntax, so that I can proceed.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply