|
Often, you might have a report that spans 15 pages or more. When printing a grid onto multiple pages, it is very important to keep track of what goes where. SharpGrid has some constants that you can use in order to allow this functionality. In order to show page numbers on a SharpGrid report, you will want to use "{page}" and "{pagecount}". Below is an example of how these constants might be used in your application. Private Sub Command1_Click() Set m_Grid.PrintSettings.Viewer = ARViewer21 m_Grid.PrintSettings.HeaderHeight = 1000 m_Grid.PrintSettings.HeaderText = "Page {page} of {pagecount}" m_Grid.PrintSettings.PrintGrid End Sub
|