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

Moderator: Rathinagiri

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

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

Post by Rathinagiri »

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 1431 times
GridPDF.zip
(111.13 KiB) Downloaded 1415 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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

Post by esgici »

Very good news,

Thanks a lot Diamond :D

Best regards
Viva INTERNATIONAL HMG :D

User avatar
bpd2000
Posts: 1144
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 243 times
Been thanked: 139 times

Post by bpd2000 »

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: 3359
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 256 times
Been thanked: 163 times
Contact:

Post by mol »

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

Post by Rathinagiri »

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: 3359
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 256 times
Been thanked: 163 times
Contact:

Post by mol »

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

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

Post by Rathinagiri »

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 9122 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: 1144
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 243 times
Been thanked: 139 times

Post by bpd2000 »

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: 3359
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 256 times
Been thanked: 163 times
Contact:

Post by mol »

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

Post by Rathinagiri »

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