Sliding objects to the left on a line
Moderators: Moderators, Tech Support
-
- Posts: 12
- Joined: Wed Jan 27, 2016 7:58 pm
Sliding objects to the left on a line
In a custom report, I have several fields on one line (Name, DOB, email). They are all set at certain positions on the line. Sometimes the name is short, sometimes long. Is there a way to set an object or control to slide left so it comes right after the data in the first field, rather than at a set position on the line?
-
- Tech Support
- Posts: 3100
- Joined: Thu May 13, 2004 9:59 am
- Location: PowerChurch Software
- Contact:
Re: Sliding objects to the left on a line
You can change the expression on the first field to be something like this, which will print the data from all three fields in one:
The alltrim() takes all the extra spaces off the beginning and end of the field. The transform() converts a date field into a string so it can be combined with the other string values.
If you want the fields to be tab separated instead of just a space in between, you can instead do this:
ASCII character 9 is the tab.
In any case, you would then delete the other two fields that you have printing on that line and stretch the first field out to be full page or column width.
Code: Select all
alltrim(profile_name) + " " + transform(born) + " " + alltrim(e_mail)
If you want the fields to be tab separated instead of just a space in between, you can instead do this:
Code: Select all
alltrim(profile_name) + CHR(9) + transform(born) + CHR(9) + alltrim(e_mail)
In any case, you would then delete the other two fields that you have printing on that line and stretch the first field out to be full page or column width.