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

Issues and Discussions related to Harbour

Moderator: Rathinagiri

User avatar
Hazael
Posts: 108
Joined: Thu Jun 24, 2010 11:37 am
Location: France

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

Post by Hazael » Mon Jun 10, 2013 7:10 pm

What I like in HaruPDF is that the final report looks very nice and professional but it demands a lot of work even with pre arranged functions (or methods)...

I also like the idea from having a “report engine” based on external TXT files. Look this one from Alexander Kresin (it’s old stuff but I like the idea): http://www.kresin.ru/en/prcother.html

I am trying to have something very simple but with professional results. As very simple I mean something easy to build and to do maintenance (reports may change all the time...)

I even think about creating a way for the user to customize the report...

Do you think it would be possible to use your way but mixed with Kresin's idea of "report engine" in a simple TXT file? Seems very flexible but I do not know how to put that in practice with HaruPDF

Thanks for your help.
Harbour | GTWVT | MingW | Visual Studio Code

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

Post by IMATECH » Mon Jun 10, 2013 9:51 pm

Hi Qatan !

You can create personal report's ( .prg files editable by users ) then run it as script :)

Code: Select all


// Prototype to Use ( Not Tested )
Function MR_Run_Script( cPrg )
   LOCAL oHrb

   HB_Compile( "", cPrg + ".prg", "/n", "/gh", "-IC:\MyApp\include", ... )
   oHrb := HB_HRBLOAD( cPrg + ".hrb" )
   HB_HRBDO( oHrb )
   HB_HRBUNLOAD( oHrb )
   oHrb := NIL

return( oHrb )

Also see the file:
...\Harbour\tests\hrb.prg



Regards
M., Ronaldo

By: IMATECH

Imation Tecnologia

User avatar
Rathinagiri
Posts: 5030
Joined: Tue Jul 29, 2008 6:30 pm
Location: Sivakasi, India
Has thanked: 75 times
Been thanked: 85 times
Contact:

Post by Rathinagiri » Tue Jun 11, 2013 1:45 am

By Report Engine, do you want the users to change some parameters during printing? Like, changing the orientation, font name, size, columns resizing etc?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Hazael
Posts: 108
Joined: Thu Jun 24, 2010 11:37 am
Location: France

Post by Hazael » Tue Jun 11, 2013 9:01 am

I believe that more options you give to the user better it is.
Of course there is a limit of what the user should do to avoid it to be over complex. Should be very simple and clear.
I remember there was an ERP system that used Crystal Reports and you could cange/create reports. It was pretty powerful but it was a PAIN to do anything. You basically had to study a huge manual to understand how to configure it... almost useless (although you could make any report with it but after many days of reading the manual and configuring it).

Script is not really what I meant because it would be over complex to configure.

I like Kresin's idea but the final result is too simple (does not look nice) and you can not add logos, barcodes, lines, other fonts and colors.
Harbour | GTWVT | MingW | Visual Studio Code

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest