1 Attachment(s)
Print MSFlexgrid Aligned [RESOLVED]
Im having a spot of bother printing my flexgrid.
I use the following code (copied from here somewhere)
VB Code:
Dim strRowText As String
With ResGrid
For i = 0 To .Rows - 1
strRowText = ""
strRowText = strRowText & .TextMatrix(i, 0) & vbTab & vbTab
For j = 1 To .Cols - 1
strRowText = strRowText & .TextMatrix(i, j) & vbTab
Next j
Printer.Print vbTab & vbTab & strRowText
Next i
End With
This prints out a nice grid until one of the row headers is too long.
http://www.vbforums.com/attachment.p...postid=1564363
How can I align this properly?