Clipper Report Class

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Clipper Report Class

Post by Pablo César »

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 4002 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: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: Clipper Report Class

Post by Anand »

Hi Pablo,

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

Regards,

Anand
Regards,

Anand

Image
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Clipper Report Class

Post by trmpluym »

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: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Clipper Report Class

Post by Pablo César »

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 3947 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: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: Clipper Report Class

Post by Anand »

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
Regards,

Anand

Image
RPC
Posts: 281
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: Clipper Report Class

Post by RPC »

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: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: Clipper Report Class

Post by Anand »

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
Regards,

Anand

Image
RPC
Posts: 281
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: Clipper Report Class

Post by RPC »

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: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: Clipper Report Class

Post by Anand »

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 297 times
Regards,

Anand

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

Re: Clipper Report Class

Post by Rathinagiri »

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