Page 3 of 5

Clipper Report Class

Posted: Mon Mar 13, 2017 4:42 pm
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 4109 times
 
Printing is off page. :|

Re: Clipper Report Class

Posted: Tue Mar 14, 2017 7:35 am
by Anand
Hi Pablo,

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

Regards,

Anand

Re: Clipper Report Class

Posted: Tue Mar 14, 2017 8:09 am
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

Clipper Report Class

Posted: Tue Mar 14, 2017 12:45 pm
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 4054 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...

Re: Clipper Report Class

Posted: Tue Mar 14, 2017 4:08 pm
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

Re: Clipper Report Class

Posted: Tue Mar 14, 2017 6:17 pm
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

Re: Clipper Report Class

Posted: Wed Mar 15, 2017 4:26 pm
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

Re: Clipper Report Class

Posted: Wed Mar 15, 2017 4:57 pm
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

Re: Clipper Report Class

Posted: Sun Mar 19, 2017 6:17 pm
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

Re: Clipper Report Class

Posted: Mon Mar 20, 2017 5:12 am
by Rathinagiri
That is really wonderful. Thank you Anand. Great going.