HMG_HPDF - Export to PDF made easy... (New Version)

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5234
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 160 times
Been thanked: 154 times
Contact:

HMG_HPDF - Export to PDF made easy... (New Version)

Post by Rathinagiri » Mon Oct 01, 2012 2:11 pm

For the latest version please download from here.

Dear friends,

I have fixed some major bugs ( especially in LandScape mode and Center/Right alignment )

I have added Grid Printing sample in a separate file. Hope it will be useful.

Now, I am ready to add a GridToolBar (which can be attached to any grid) with four functionalities: :)

1. Grid to Text file
2. Grid to CSV file
3. Grid to Print Directly
4. Grid to PDF export.
pdf.zip
(264.32 KiB) Downloaded 1329 times
GridPDF.zip
(111.13 KiB) Downloaded 1328 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4452
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 332 times
Been thanked: 101 times
Contact:

Post by esgici » Mon Oct 01, 2012 2:23 pm

Very good news,

Thanks a lot Diamond :D

Best regards
Viva INTERNATIONAL HMG :D

User avatar
bpd2000
Posts: 1024
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 165 times
Been thanked: 72 times

Post by bpd2000 » Tue Oct 02, 2012 3:20 am

esgici wrote:Very good news,

Thanks a lot Diamond :D

Best regards
Dear Rathi,

You are really Diamond
BPD
Convert Dream into Reality through HMG

User avatar
mol
Posts: 3039
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 170 times
Been thanked: 92 times
Contact:

Post by mol » Tue Oct 02, 2012 5:21 am

Excellent job!

But when creating a sample, paragraph which has to be center aligned was not in the middle of page, and paragraph right aligned was on the left side...
What's going on?

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

Post by Rathinagiri » Tue Oct 02, 2012 5:52 am

Hi Marek,

Can you please give the exact command you have entered?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
mol
Posts: 3039
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 170 times
Been thanked: 92 times
Contact:

Post by mol » Tue Oct 02, 2012 11:12 am

I've tested your sample and I've got this result:
Image

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

Post by Rathinagiri » Tue Oct 02, 2012 11:57 am

It is really not a mistake/bug. :)

Please see the commands for these output.

@ 10, 60 HPDFPRINT 'This is sample Left Aligned'
@ 20, 60 HPDFPRINT 'This is sample Center Aligned' CENTER
@ 25, 60 HPDFPRINT 'This is sample Right Aligned' RIGHT

Note the column coordinate. It starts at 60. So, the text is left/center/right aligned to 60 MM. See this image:
60mm.jpg
60mm.jpg (58.45 KiB) Viewed 5946 times
For true alignment, You can check,

@ 10, 10 HPDFPRINT 'This is sample Left Aligned'
@ 20, 105 HPDFPRINT 'This is sample Center Aligned' CENTER
@ 25, 210 HPDFPRINT 'This is sample Right Aligned' RIGHT
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
bpd2000
Posts: 1024
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 165 times
Been thanked: 72 times

Post by bpd2000 » Tue Oct 02, 2012 12:28 pm

You can check differently

@ 10, 105 HPDFPRINT 'This is sample Left Aligned'
@ 20, 105 HPDFPRINT 'This is sample Center Aligned' CENTER
@ 25, 105 HPDFPRINT 'This is sample Right Aligned' RIGHT
BPD
Convert Dream into Reality through HMG

User avatar
mol
Posts: 3039
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 170 times
Been thanked: 92 times
Contact:

Post by mol » Tue Oct 02, 2012 6:14 pm

rathinagiri wrote:It is really not a mistake/bug. :)

Please see the commands for these output.

@ 10, 60 HPDFPRINT 'This is sample Left Aligned'
@ 20, 60 HPDFPRINT 'This is sample Center Aligned' CENTER
@ 25, 60 HPDFPRINT 'This is sample Right Aligned' RIGHT

Note the column coordinate. It starts at 60. So, the text is left/center/right aligned to 60 MM. See this image:
60mm.jpg
For true alignment, You can check,

@ 10, 10 HPDFPRINT 'This is sample Left Aligned'
@ 20, 105 HPDFPRINT 'This is sample Center Aligned' CENTER
@ 25, 210 HPDFPRINT 'This is sample Right Aligned' RIGHT
:lol: :lol: :lol:

I apologize for my carelessness

regards, Marek

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

Post by Rathinagiri » Tue Oct 02, 2012 7:23 pm

Oh. No need to apologize Marek. It helped me to double check.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply