------------------------------------------------------------------------
 iGrid Direct Printing Sample for iGrid ActiveX
 
 Control Version: 5.0
 Environment: Visual Basic 6

 Copyright (c) 10Tec Company. All rights reserved.
------------------------------------------------------------------------

Description
===========
iGrid is a lightweight grid control that does not have any built-in printing functionality. If you need to print the grid, you can use the approach from this sample to do that. An enough universal printing sub from this demo prints the contents of iGrid directly to the printer.

Short Code Explanation
======================
The printing in this sample is done through the classical VB Printer object.

To use the direct printing functionality in your project, attach the modiGridPrint module (iGridPrint.bas) and the frmSelectPrinter form (SelectPrinter.frm, SelectPrinter.frx) to your project. Then call the public PrintGrid_FrontEnd sub like in the following example:

Private Sub cmdPrint_Click()
   Dim OK As Boolean
   Dim sTitle As String
   
   sTitle = txtReportTitle.Text
   OK = PrintGrid_FrontEnd(iGrid1, sTitle)
End Sub


Change List
===========
** 2014-Sep-03 **
1) The code was refactored for easy usage in new projects. Special thanks to the 10Tec forum user with the nick 'Rob Down Under' for that.
** 2014-Aug-27 **
1) The code based on iGrid 3.0 was upgraded for iGrid 5.0.