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

Moderator: Rathinagiri

User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

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

Post by IMATECH »

Hi All !
.
.
.
Project to use hbHPdf and hbZebra in any Harbour app ( Lib/OS agnostic )...
.
Sources at:
.
http://www.pctoledo.com.br/forum/viewto ... =4&t=13571
.
.
.
Best regards...
.
.
.
Attachments
A real documment using hbHPdf and hbZebra...
A real documment using hbHPdf and hbZebra...
Capturar.PNG (115.88 KiB) Viewed 5829 times
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

HMG_HPDF with a small feature once again.

This time it is SET HPDFPAGE LINESPACING TO nSpacing.

This is useful to alter the linespacing between the lines printed using @..HPDFPRINT..TO command.

I have created a small documentation for HMG_HPDF using HMG_HPDF. :)

It will be acting as a better sample for HMG_HPDF since it almost uses all the commands of HMG_HPDF.

Hope this will be useful.
HMGHPDFDOC.zip
(202.11 KiB) Downloaded 417 times
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: HMG_HPDF - Export to PDF made easy... (New Version)

Post by esgici »

rathinagiri wrote:I have created a small documentation for HMG_HPDF using HMG_HPDF.
Super :!:

Thanks :)

TIA
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

Oh, you have replied so soon! I have changed the file to a newer version. Please download the latest one.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

Chacal.GO wrote:Hi All !
.
.
.
Project to use hbHPdf and hbZebra in any Harbour app ( Lib/OS agnostic )...
.
Sources at:
.
http://www.pctoledo.com.br/forum/viewto ... =4&t=13571
.
.
.
Best regards...
.
.
.
Thank you. I think it will be very useful.
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: HMG_HPDF - Export to PDF made easy... (New Version)

Post by esgici »

rathinagiri wrote:HMG_HPDF with a small feature once again.

This time it is SET HPDFPAGE LINESPACING TO nSpacing.

This is useful to alter the linespacing between the lines printed using @..HPDFPRINT..TO command.
I'm confused :?

Does line-spacing determined by <nRow> value of @ ... command ?

If we have 'print' without @ ... command; between such commands :

HPDF_PRINT BEGIN TEXT
.
HPDF_PRINT PRINT ...
.
HPDF_PRINT END TEXT

this will be super :!:

Best regards
Viva INTERNATIONAL HMG :D
User avatar
IMATECH
Posts: 188
Joined: Sun May 27, 2012 9:33 pm
Location: Brazil: Goiânia-GO.

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

Post by IMATECH »

Thanks Rathi... :)
M., Ronaldo

By: IMATECH

Imation Tecnologia
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

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

Post by bpd2000 »

rathinagiri wrote:HMG_HPDF with a small feature once again.

I have created a small documentation for HMG_HPDF using HMG_HPDF
[/attachment]
Thank you Rathi for providing HMG_HPDF Manual using HMG_HPDF library, Excellant
BPD
Convert Dream into Reality through HMG
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

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

Post by mol »

rathinagiri wrote:HMG_HPDF with a small feature once again.

This time it is SET HPDFPAGE LINESPACING TO nSpacing.

This is useful to alter the linespacing between the lines printed using @..HPDFPRINT..TO command.

I have created a small documentation for HMG_HPDF using HMG_HPDF. :)

It will be acting as a better sample for HMG_HPDF since it almost uses all the commands of HMG_HPDF.

Hope this will be useful.
Is it possible to set liespacing in normal printing?

Marek
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

Is it possible to set liespacing in normal printing?
IMHO, it is. Since all the printing is done using @ row, col we can fix the line spacing as we require. Isn't it?

Please consider this:

Code: Select all

....
nLineSpacing := 5 // line spacing is 5 mm
nFirstRow := 10 // first row starts at 10 mm
nLastRow := 280 // last row is set at 280 mm
nCurrentRow := nFirstRow
lReportContinue := .t.
do while lReportContinue
   @ nCurrentRow, 10 HPDFPRINT cData
   nCurrentRow := nCurrentRow + nLineSpacing
   cData := CurrentRecord()
   if LastRecord() 
      lReportContinue := .f.
   endif
   if nCurrentRow > nLastRow
      END HPDFPAGE
      START HPDFPAGE
      nCurrentRow := nFirstRow
   endif
enddo
.....
Does line-spacing determined by <nRow> value of @ ... command ?

If we have 'print' without @ ... command; between such commands :

HPDF_PRINT BEGIN TEXT
.
HPDF_PRINT PRINT ...
.
HPDF_PRINT END TEXT
Hi Esgici,

I can't fully understand your proposition. Can you please explain using a small sample/template program as to how do you want?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply