Print Search Rate
    
   04-23-2003, 3:38 PM
How Do I Print Page Numbers with SharpGrid?

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


GrapeCity » Frequently Aske... » SharpGrid FAQ » How Do I Print Page Numbers with SharpGrid?
Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.