M
Mark
Good morning to everybody
I need to draw a transversal line on some my reports to cancel
the non written report part.
I have made this routine to draw the line.
Private Sub Report_Page()
Dim A As double, B As Double, C As Double, D As Double
Me.DrawStyle = 0
Me.DrawWidth = 2
A = numberrowpage
B = Me.IntestazionePagina.Height + Me.Corpo.Height * A +
Me.PièDiPaginaReport.Height
C = Me.ScaleHeight - Me.PièDiPaginaPagina.Height
If B > C - 300 Then Exit Sub
Me.Line (0, B)-(Me.Width, C)
End Sub
Everything works well till I put in report a textbox with the properties
CanGrow and or CanShrink.
In this case the value B of the routine is not correct.
Has someone solved this problem?
Many Thanks in advance
Marco Dell'Oca
I need to draw a transversal line on some my reports to cancel
the non written report part.
I have made this routine to draw the line.
Private Sub Report_Page()
Dim A As double, B As Double, C As Double, D As Double
Me.DrawStyle = 0
Me.DrawWidth = 2
A = numberrowpage
B = Me.IntestazionePagina.Height + Me.Corpo.Height * A +
Me.PièDiPaginaReport.Height
C = Me.ScaleHeight - Me.PièDiPaginaPagina.Height
If B > C - 300 Then Exit Sub
Me.Line (0, B)-(Me.Width, C)
End Sub
Everything works well till I put in report a textbox with the properties
CanGrow and or CanShrink.
In this case the value B of the routine is not correct.
Has someone solved this problem?
Many Thanks in advance
Marco Dell'Oca