MR-Print: Harbour Print System (array, txt, prn, dbf => pdf)

Issues and Discussions related to Harbour

Moderator: Rathinagiri

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

MR-Print: Harbour Print System (array, txt, prn, dbf => pdf)

Post by IMATECH » Wed Oct 10, 2012 11:08 pm

//*---------------------------------------------------------------*
//
// M., Ronaldo: Print System for Harbour
//
// Class: MR_Print
//
// Uses: hbHPdf, hbZebra and hbMisc
//
//*----------------------------------------------------------------*
.
.
.
1 - Files on project:

1.1 - Sources
1.2 - Demo ( .Exe )
1.3 - Samples for demo
1.4 - Readme ( GNU Licence )
.
DownLoad:
https://github.com/downloads/MRonaldo/M ... 121121.rar
.
.
.
GitHub CVS ( repository with updated files ):
https://github.com/MRonaldo/MR-Tools/downloads
.
.
.
Sample PDF created:
https://github.com/downloads/MRonaldo/M ... _Print.PDF
https://github.com/downloads/MRonaldo/M ... boleto.PDF
.
.
.

/*
* MR-Tools source code:
*
* Copyright 2012 M., Ronaldo < ronmesq@gmail.com >
* https://github.com/MRonaldo/MR-Tools/downloads
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
* or visit the site https://github.com/MRonaldo/MR-Tools/downloads
*
* As a special exception, the MR-Tool Project gives permission for
* additional uses of the text contained in its release.
*
* The exception is that, if you link the MR-Tools libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the MR-Tools library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the MR-Tools
* Project under the name MR-Tools. If you copy code from other
* MR-Tools Project or Free Software Foundation releases into a copy of
* MR-Tools, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for MR-Print, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*
*
* If you want to contribute in this project, just contact the author:
* Bug reports
* Ideas
* Requests
* Sources
* ...
*
*/
.
.
.
.
Regards...
Last edited by IMATECH on Wed Nov 21, 2012 8:21 pm, edited 10 times in total.
M., Ronaldo

By: IMATECH

Imation Tecnologia

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

Post by Rathinagiri » Thu Oct 11, 2012 3:11 am

Wow! It looks very simple and promising. Thanks a lot for sharing Ronaldo.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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

Post by IMATECH » Thu Oct 11, 2012 4:50 am

Thanks Rathi...


Nice words ;)



Best regards
M., Ronaldo

By: IMATECH

Imation Tecnologia

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

Post by Rathinagiri » Thu Oct 11, 2012 5:37 am

If you can provide to print a two dimensional array with various types of data, that will be much of help.

PRN file to PDF is really a handy utility.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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

Post by IMATECH » Fri Oct 12, 2012 2:25 am

//*----------------------------------------------------------------------------*
//
// M., Ronaldo: Harbour Print System
//
// Class: MR_Print
//
// Uses: hbHPdf, hbZebra, hbCT and hbMisc
//
//*----------------------------------------------------------------------------*
2012/10/11: Updated

1 - oMRPrint:ArrayToPDF( ... )
1.1 - Print bidimensional array: String, Date, Logical and Numeric
1.1.1 - Thanks To: Sr. Rathinagiri

2 - oMRPrint:Draw_Text_Rotated( ... )
2.1 - Print Text rotated from 0° to 360°
2.1.1 - Thanks to Ukoenig from FiveWin Forum ( for requesting this feature )...
.
.
.
Best regards...
Last edited by IMATECH on Fri Oct 12, 2012 4:30 am, edited 1 time in total.
M., Ronaldo

By: IMATECH

Imation Tecnologia

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

Post by Rathinagiri » Fri Oct 12, 2012 3:01 am

Thank you very much.

Really handy.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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

Post by IMATECH » Mon Oct 15, 2012 6:42 pm

//*----------------------------------------------------------------------------*
//
// M., Ronaldo: Harbour Print System
//
// Class: MR_Print
//
// Uses: hbHPdf, hbZebra, hbCT and hbMisc
//
//*----------------------------------------------------------------------------*
2012/10/15: Updated

Now available fonts have:
Bold
Italic and
Bold + Italic

*** Italic = Oblique
.
.
.
Best regards...
M., Ronaldo

By: IMATECH

Imation Tecnologia

User avatar
danielmaximiliano
Posts: 1981
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 14 times
Been thanked: 8 times
Contact:

Post by danielmaximiliano » Mon Oct 15, 2012 9:35 pm

Ronaldo :
muy buen trabajo el que hace.. Felicitaciones
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp / Telegrams To cel +54 011 690 26 142

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

Post by IMATECH » Mon Oct 15, 2012 9:44 pm

Thanks DaNiElMaXiMiLiAnO :)


Best regards...
M., Ronaldo

By: IMATECH

Imation Tecnologia

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

Post by IMATECH » Thu Oct 18, 2012 5:15 pm

//*----------------------------------------------------------------------------*
//
// M., Ronaldo: Harbour Print System
//
// Class: MR_Print
//
// Uses: hbHPdf, hbZebra, hbCT and hbMisc
//
//*----------------------------------------------------------------------------*
2012/10/18: Updated

Now we have fonts with colors:

Added Method: Set_Font_Color( r, g, b )

Set_Font_Color( 255, 0, 0 ) /* Red */
Set_Font_Color( 0, 255, 0 ) /* Green */
Set_Font_Color( 0, 0, 255 ) /* Blue */

Set_Font_Color( 0, 0, 0 ) /* Black */
.
.
.
Best regards...
M., Ronaldo

By: IMATECH

Imation Tecnologia

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest