Print Designer - modify offset on the fly

Discussions about Diving Log 6.0 - questions and hints
Post Reply
bowlofpetunias
Posts: 25
Joined: Tue Apr 08, 2008 10:49
Location: Sydney, Australia

Print Designer - modify offset on the fly

Post by bowlofpetunias »

Sven

I was hoping you may be able to help me with this. I am trying to make a log book page using report designer.

I want an A5 page with a different binding margin for odd and even pages, I am using the odd dive numbers for the odd pages and even dive numbers for the even pages as this will give consistant margins.

What I hoped to be able to do was reset the x offset in the page setup by

If(Even(LogNumber),LL.Device.PrintableArea.Offset.cx=13,LL.Device.PrintableArea.Offset.cx=5)

unfortunately this did not work.

Any suggestions or help would be greatly appreciated.

Thanks
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Post by divinglog »

Hi

You can try to ask fatuus via PM, I think he knows the report designer better that anyone else (including me).

Sven
bowlofpetunias
Posts: 25
Joined: Tue Apr 08, 2008 10:49
Location: Sydney, Australia

Post by bowlofpetunias »

Thanks Sven have sent a pm to Fatuus.
fatuus
Posts: 36
Joined: Sat Apr 07, 2007 14:53
Location: Sweden
Contact:

Hmm

Post by fatuus »

Actually, im not sure how to do this in the easiest way. But maybe one way to do it is tho use the "Layer function"
Project->Layer Definitions
I made two layers:
Evan dives - Even (LogNumber) = True
Odd dives - Odd (LogNumber) = True

An then assign copy's of same fields in different positions to different layers.
Maybe....
bowlofpetunias
Posts: 25
Joined: Tue Apr 08, 2008 10:49
Location: Sydney, Australia

Post by bowlofpetunias »

That makes sense to me, I will try it and let you know how it goes.

I just thought that seeing as they allowed you to access the offset variable there should be a way of setting it for each page.

Thanks again for the help.
fatuus
Posts: 36
Joined: Sat Apr 07, 2007 14:53
Location: Sweden
Contact:

Post by fatuus »

yeah... i though so too. but i don´t know how to handle it.
but when i read the help:
LL.Device.PrintableArea.Offset.cx
Width of the left non-printable border in project coordinates in SCM units (1/1000 mm).

Example: In the Property List, set the property Position.Left to the value LL.Device.PrintableArea.Offset.cx. The object will always lie exactly on the left edge of the printable area of the printer.

LL.Device.PrintableArea.Offset.cy
Height of the top of the non-printable border in project coordinates in SCM units (1/1000 mm).


you can not change it depending on dive.
what size of the margin do you want?
You could also set the Postions Left to something like: If(Even(LogNumber),10,30)
But then all elements that should have different positions need it.
bowlofpetunias
Posts: 25
Joined: Tue Apr 08, 2008 10:49
Location: Sydney, Australia

Post by bowlofpetunias »

I took your advice and did it by layers ... it worked fine, I have actually posted in the Combit List and Label forum to see if I can get any ideas from there.

I have attached a sample of what I am doing ... still a work in progress ... and has been for quite some time

I will email a sample of what i have done so far

thanks again for your help
Post Reply