At the moment I am playing with verticle lines, although it will help with future things...
I have scoured the internet and found many different ways of doing 1 single task,
I need to simply resize my verticle lines in print preview. 1 main issue is the details section has a sub report which the lines need to extend beyond.
Now I have the code, but place it in the On Page event of the report and I get error "Cannot adjust property: Height in print preview mode"
Another forum suggested the "On Format" event of the Detail section, whilst it worked for the first record, using the Me.Height to encapsulate even the subform... but the following records are ignored and the height is applied to all, but not relative to the record height.
For example if the first records sub report has 3 entries, it will make the height of all records the same, regardless if the next has 2 or 4 or no records at all.
None of the other events seem to apply for dynamic resizing of height etc...
Hope you can help, any advice is appreciated.
I have scoured the internet and found many different ways of doing 1 single task,
I need to simply resize my verticle lines in print preview. 1 main issue is the details section has a sub report which the lines need to extend beyond.
Now I have the code, but place it in the On Page event of the report and I get error "Cannot adjust property: Height in print preview mode"
Another forum suggested the "On Format" event of the Detail section, whilst it worked for the first record, using the Me.Height to encapsulate even the subform... but the following records are ignored and the height is applied to all, but not relative to the record height.
For example if the first records sub report has 3 entries, it will make the height of all records the same, regardless if the next has 2 or 4 or no records at all.
None of the other events seem to apply for dynamic resizing of height etc...
Hope you can help, any advice is appreciated.
Code:
Dim LHeight As String
LHeight = Me.Height
Line39.Height = LHeight
Line38.Height = LHeight
Line37.Height = LHeight
Line36.Height = LHeight
Line35.Height = LHeight
Line34.Height = LHeight
Line33.Height = LHeight