Grid2Print - Suggestions

Source code related resources

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5266
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 173 times
Contact:

Grid2Print - Test Version

Post by Rathinagiri » Wed Aug 13, 2008 12:45 pm

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: 4519
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 392 times
Been thanked: 112 times
Contact:

Post by esgici » Wed Aug 13, 2008 2:05 pm

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: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Fri Aug 15, 2008 4:19 pm

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: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Fri Aug 15, 2008 6:40 pm

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: 5266
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 173 times
Contact:

Post by Rathinagiri » Sun Aug 17, 2008 3:56 pm

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: 5266
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 173 times
Contact:

Post by Rathinagiri » Fri Aug 22, 2008 3:30 pm

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: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Fri Aug 22, 2008 5:04 pm

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: 5266
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 173 times
Contact:

Post by Rathinagiri » Fri Aug 22, 2008 5:13 pm

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: 4519
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 392 times
Been thanked: 112 times
Contact:

Post by esgici » Fri Aug 22, 2008 5:30 pm

Hi Rathi

More advanced than previous, thanks.

Do you think formatting numeric fields ?

Regards

--

esgici
Viva INTERNATIONAL HMG :D

User avatar
Rathinagiri
Posts: 5266
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 173 times
Contact:

Post by Rathinagiri » Fri Aug 22, 2008 6:13 pm

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