ACC2000: Vertical Lines in Report Do Not Grow with SectionID: Q208429
|
Vertical line controls do not increase in height when you place them in a
report section even if you set the CanGrow property for the section to Yes.
Use the Line method to prevent broken lines if the report section grows. The following example uses the sample database Northwind.mdb to demonstrate how to use the Line method.
Private Sub Report_Open(Cancel as Integer)
DoCmd.Maximize
End Sub
Private Sub Report_Close()
DoCmd.Restore
End Sub
Private Sub Detail_Print(Cancel as Integer, PrintCount as Integer)
Me.ScaleMode = 1
Me.ForeColor = 0
'Repeat the following line of code for each vertical line
'1 * 1440 represents 1 inch.
Me.Line (0 * 1440, 0) - (0 * 1440, 14400)
Me.Line (1 * 1440, 0) - (1 * 1440, 14400)
Me.Line (1.9 * 1440, 0) - (1.9 * 1440, 14400)
Me.Line (5.5 * 1440, 0) - (5.5 * 1440, 14400)
'The 14400 is an arbitrary number to increase the line
'to the max of a section.
End Sub
For more information about the Circle method, please see the following article in the Microsoft Knowledge Base:
Q2103365 ACC2000: How to Use the Circle Method on a ReportFor more information about the Line method, click Microsoft Visual Basic Help on the Help menu, type "line method" in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.
Additional query words: prb
Keywords : kbusage kbdta FmrProb
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 16, 1999