Clipper Report Class
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Clipper Report Class
Hi Anand,
I have tested but did not see what is was wrong. In my preview it's looks like this:
Printing is off page.
I have tested but did not see what is was wrong. In my preview it's looks like this:
Printing is off page.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: Clipper Report Class
Hi Pablo,
This is due to default printer, which is probably a DMP printer. Change the default printer and check.
Regards,
Anand
This is due to default printer, which is probably a DMP printer. Change the default printer and check.
Regards,
Anand
Re: Clipper Report Class
Pablo,
Theo
Reinstall the HP printerThis is due to default printer, which is probably a DMP printer. Change the default printer and check.
Theo
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Clipper Report Class
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.
It's by this reason than Theo is laughing. Because he knows that I installed this HP printer by Theo demands.
Sorry Anand, at moment I can not revise what it could be wrong...
It's by this reason than Theo is laughing. Because he knows that I installed this HP printer by Theo demands.
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: Clipper Report Class
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
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
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
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
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
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
Hi Anand
I understand march ending rush. I just wanted to present my experience with your code.
Pls take your time to improve it.
You are doing great job.
Thanks
I understand march ending rush. I just wanted to present my experience with your code.
Pls take your time to improve it.
You are doing great job.
Thanks
Re: Clipper Report Class
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
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 304 times
- 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
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.
South or North HMG is worth.
...the possibilities are endless.