Clipper Report Class

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4052
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Clipper Report Class

Post by Pablo César » Mon Mar 13, 2017 4:42 pm

Hi Anand,

I have tested but did not see what is was wrong. In my preview it's looks like this:
 
Screen126.png
Screen126.png (29.4 KiB) Viewed 310 times
 
Printing is off page. :|
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Anand
Posts: 168
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF
Has thanked: 14 times
Been thanked: 28 times

Post by Anand » Tue Mar 14, 2017 7:35 am

Hi Pablo,

This is due to default printer, which is probably a DMP printer. Change the default printer and check.

Regards,

Anand
Image

trmpluym
Posts: 190
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Post by trmpluym » Tue Mar 14, 2017 8:09 am

Pablo,
This is due to default printer, which is probably a DMP printer. Change the default printer and check.
Reinstall the HP printer :lol:

Theo

User avatar
Pablo César
Posts: 4052
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Tue Mar 14, 2017 12:45 pm

Yes Anand, the printer is a HP PCL 5 but I changed by Epson LX-300 (DOT printer) and it's little better but still out of page.
 
Screen127.png
Screen127.png (26.79 KiB) Viewed 255 times
 
It's by this reason than Theo is laughing. Because he knows that I installed this HP printer by Theo demands. :lol:

Sorry Anand, at moment I can not revise what it could be wrong...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Anand
Posts: 168
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF
Has thanked: 14 times
Been thanked: 28 times

Post by Anand » Tue Mar 14, 2017 4:08 pm

Hi Pablo,

I understand the problem is due to left margin.

A quick solution is to add <n> in the print command, as below,
@ nDevRow * 5, (nDevCol * 2.5) + 5.0 PRINT cVar // 5.0 added for left margin.
in function hbDevOut() in gHBPRINT.prg

Note that this is a quick crude way, till I figure out the margin setting commands in HMG.

Regards,

Anand
Image

RPC
Posts: 94
Joined: Fri Feb 10, 2017 4:12 am
Has thanked: 21 times
Been thanked: 2 times

Post by RPC » Tue Mar 14, 2017 6:17 pm

Hi Anand
I tried your program and get same output as you have shown.
However a few lines are printed beyond the page at the bottom.
When PDF File option is selected error msg PDF PAGE cannot be found is displayed twice, the PDF file is however correctly prepared.
Thanks

User avatar
Anand
Posts: 168
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF
Has thanked: 14 times
Been thanked: 28 times

Post by Anand » Wed Mar 15, 2017 4:26 pm

Hi RPC,

Yes, still some work is needed in different output. PDF, HTML, XLS etc. all need some work, including header and footer. I am busy with March year end works so please give me some time. I knew I was getting delayed so uploaded the same, so that others get the idea that I am trying to develop.

I hope this Report Class becomes useful for the HMG community.

Regards,

Anand
Image

RPC
Posts: 94
Joined: Fri Feb 10, 2017 4:12 am
Has thanked: 21 times
Been thanked: 2 times

Post by RPC » Wed Mar 15, 2017 4:57 pm

Hi Anand
I understand march ending rush. I just wanted to present my experience with your code.
Pls take your time to improve it. 8-)
You are doing great job. :)
Thanks

User avatar
Anand
Posts: 168
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF
Has thanked: 14 times
Been thanked: 28 times

Post by Anand » Sun Mar 19, 2017 6:17 pm

Thanks for the appreciation. :)

I have fixed the PDF error and also header is printing in HTML and XLS files now.
Left margin given for Print preview.

Full source attached.

Regards,

Anand
Attachments
Report_Class_HMG.zip
(22.97 KiB) Downloaded 43 times
Image

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

Post by Rathinagiri » Mon Mar 20, 2017 5:12 am

That is really wonderful. Thank you Anand. Great going.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest