Page 1 of 16

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

Posted: Mon Oct 01, 2012 2:11 pm
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 1372 times
GridPDF.zip
(111.13 KiB) Downloaded 1363 times

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

Posted: Mon Oct 01, 2012 2:23 pm
by esgici
Very good news,

Thanks a lot Diamond :D

Best regards

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

Posted: Tue Oct 02, 2012 3:20 am
by bpd2000
esgici wrote:Very good news,

Thanks a lot Diamond :D

Best regards
Dear Rathi,

You are really Diamond

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

Posted: Tue Oct 02, 2012 5:21 am
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?

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

Posted: Tue Oct 02, 2012 5:52 am
by Rathinagiri
Hi Marek,

Can you please give the exact command you have entered?

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

Posted: Tue Oct 02, 2012 11:12 am
by mol
I've tested your sample and I've got this result:
Image

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

Posted: Tue Oct 02, 2012 11:57 am
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 7247 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

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

Posted: Tue Oct 02, 2012 12:28 pm
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

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

Posted: Tue Oct 02, 2012 6:14 pm
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

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

Posted: Tue Oct 02, 2012 7:23 pm
by Rathinagiri
Oh. No need to apologize Marek. It helped me to double check.