I thought I was finished playing about with the report layouts, but here's another little gem to solve.
One of the fields in the report can have multiple records and the field next to it has corresponding data. This is fine, but gets messy if the text in the first field goes over 1 line.
This looks okay for the report
_________________________
name1 - details1 ¦ cost1
name2 - details2 ¦ cost2
name3 - details3 ¦ cost3
name4 - details4 ¦ cost4
But I have been asked to ensure that the costs line up with the corresponding name and details, which is a problem if more than 1 line is required.
_________________________
name1 - details1 ¦ cost1
name2 - lots of ..¦ cost2
details2 ............¦ cost3
name3 - details3 ¦ cost4
name4 - details4 ¦
I guess the only thing I can really do is check the length of the record against the width of the field and try to work out how many lines are required. If more than 1, then I add a vbCrLf for each additional line to the cost column.
The reports are in Ariel, so would I need to change to Courier? Has anyone done something similar? Other than trial and error, i'm not sure about how to get the desired lengths - or is there some other way of going about this?
Thanks for any advice.
One of the fields in the report can have multiple records and the field next to it has corresponding data. This is fine, but gets messy if the text in the first field goes over 1 line.
This looks okay for the report
_________________________
name1 - details1 ¦ cost1
name2 - details2 ¦ cost2
name3 - details3 ¦ cost3
name4 - details4 ¦ cost4
But I have been asked to ensure that the costs line up with the corresponding name and details, which is a problem if more than 1 line is required.
_________________________
name1 - details1 ¦ cost1
name2 - lots of ..¦ cost2
details2 ............¦ cost3
name3 - details3 ¦ cost4
name4 - details4 ¦
I guess the only thing I can really do is check the length of the record against the width of the field and try to work out how many lines are required. If more than 1, then I add a vbCrLf for each additional line to the cost column.
The reports are in Ariel, so would I need to change to Courier? Has anyone done something similar? Other than trial and error, i'm not sure about how to get the desired lengths - or is there some other way of going about this?
Thanks for any advice.