pagebreaks
Posted: Fri Jan 12, 2024 9:31 pm
Hi Sergey,
I've been working on this for 3 days and I'm out of ideas.
I'm trying to get line numbers in the left margin of the print preview. I'm using a regular rve and rvprintpreview components (not actions).
I have it working pretty well now unless I add pagebreaks into my file, then all my drawitem top values go wonky. Longer files that make the preview break pages naturally cause no problem, it's just my "manually added" pagebreaks that throw my calcs off. When I add a manual pagebreak and step the code, there seems to be 2 pagebreaks on the page, the one I added and another one that the print preview put in (I'm just guessing here).
Oh, if I add a couple of blank lines and put the pagebreak between those, it works OK. If I put the pagebreak at the beginning of a line of text then the line numbers don't align well with the rve text (using drawtext tops).
If you have any thoughts on this I'd appreciate them. I can post the code but I don't want to bother you with it. Just some advice would help.
Thanks Sergy
Stan
I've been working on this for 3 days and I'm out of ideas.
I'm trying to get line numbers in the left margin of the print preview. I'm using a regular rve and rvprintpreview components (not actions).
I have it working pretty well now unless I add pagebreaks into my file, then all my drawitem top values go wonky. Longer files that make the preview break pages naturally cause no problem, it's just my "manually added" pagebreaks that throw my calcs off. When I add a manual pagebreak and step the code, there seems to be 2 pagebreaks on the page, the one I added and another one that the print preview put in (I'm just guessing here).
Oh, if I add a couple of blank lines and put the pagebreak between those, it works OK. If I put the pagebreak at the beginning of a line of text then the line numbers don't align well with the rve text (using drawtext tops).
If you have any thoughts on this I'd appreciate them. I can post the code but I don't want to bother you with it. Just some advice would help.
Thanks Sergy
Stan