Different Background position depending on the page number

Odradek

New member
Local time
Today, 23:55
Joined
Apr 30, 2022
Messages
1
Hello lovely forum,

I hope you can help me. I have a report and I have to add a picture to it. It's a stripe stretching, almost from top to bottom of the page. Easy to do, I used the picture as the background image. But here is my problem. The stripe has to be on the left if the page number is odd and on the right side of the page if the page number is even.
Maybe for reference how it should look like in the end.
Reference.JPG
 
One possible solution.
Have two red stripes and make only one visible depending on whether the page number is odd or even.
Use the detail format event for this code.
 
using Line method of report object.
will only work on Print Preview.
 

Attachments

hi Odradek

adding onto @isladogs answer ...

to more reliably reference the page number in code, create a (hidden) calculated control

Name --> PageNo
ControlSource --> =Page
 

Users who are viewing this thread

Back
Top Bottom