V
Velcerick
Sorry if this ends up as a double post... it didn't show up on the boards
more than an hour after I thought I posted it...
I need to print horizontal lines across the detail section of a report, with
more lines depending upon the height of the section. I believe that the
problem with the below code lies in my ability to obtain the current height
of the detail section when set to "CanGrow". Any suggestions or corrections
would be greatly appreciated.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim inHeight As Double
Dim lineSpace As Double
Dim inStep As Integer
inHeight = Detail.height
inStep = 1
lineSpace = 1440 * 0.1875
Do While inHeight > lineSpace
Me.Line (0, inStep)-(7.5 * 1440, inStep)
inStep = inStep + 1
lineSpace = inStep * 1440 * 0.1875
Loop
End Sub
more than an hour after I thought I posted it...
I need to print horizontal lines across the detail section of a report, with
more lines depending upon the height of the section. I believe that the
problem with the below code lies in my ability to obtain the current height
of the detail section when set to "CanGrow". Any suggestions or corrections
would be greatly appreciated.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim inHeight As Double
Dim lineSpace As Double
Dim inStep As Integer
inHeight = Detail.height
inStep = 1
lineSpace = 1440 * 0.1875
Do While inHeight > lineSpace
Me.Line (0, inStep)-(7.5 * 1440, inStep)
inStep = inStep + 1
lineSpace = inStep * 1440 * 0.1875
Loop
End Sub