Visual Basic Codes
ActiveX
Miscellaneous
Applications
Code Snippets
Common Dialogs
Special Effects
Database Stuff
Date Time
Files Drives
Forms
Graphics Games
Internet Stuff
Multimedia
Other
Strings
Windows
Visual Basic > Other sample source codes
Print the contents of a grid
Print the contents of a grid >I have a requirement to print the contents of Grid control that can be >bound or ubound. I don't know if this is a better way but... Sub PrintGrid Dim t%, s% For t% = 0 To Grid1.Rows -1 Grid1.Row = t% For s% = 0 To Grid1.Cols -1 Grid1.Col = s% Printer.Print Grid1.Text Nex s% Next t% End Sub Return
Privacy Policy
|
Link to Us
|
Links