How to make diagonal line manually?
Hi all,
I'm using Delphi Xe2 with Fast-report 4. Now I need to draw diagonal line manually which its start-end position bases on the content of the report.
See image from attachment.
Please help me.
Thanks in advanced.
I'm using Delphi Xe2 with Fast-report 4. Now I need to draw diagonal line manually which its start-end position bases on the content of the report.
See image from attachment.
Please help me.
Thanks in advanced.
Comments
what method are you using to produce the blank rows?
Well, the table is pre-printed on the paper. So there is no blank row data.
The top-left position of diagonal line depends on data row.
Thanks for helping.
what bands are you using?
OK, here is the sample design of my invoice. I use masterdata band.
Thanks
add a footerband set to stretch
in the footerband draw a diagonal line from topleft of band to bottomright
in the obp event of the footer
write code
footer1.visible := (<line> <> 8); // sub your number of lines of your preprinted form
//this will hide the footer if the exact number of records is the case
if footer1.visible then line1.height := engine.freespace;
Yes It worked.
What can I say. Many thanks.