Results 1 to 7 of 7

Thread: Print MSFlexgrid Aligned [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Print MSFlexgrid Aligned [RESOLVED]

    Im having a spot of bother printing my flexgrid.
    I use the following code (copied from here somewhere)
    VB Code:
    1. Dim strRowText As String
    2.         With ResGrid
    3.             For i = 0 To .Rows - 1
    4.                 strRowText = ""
    5.                 strRowText = strRowText & .TextMatrix(i, 0) & vbTab & vbTab
    6.                 For j = 1 To .Cols - 1
    7.                     strRowText = strRowText & .TextMatrix(i, j) & vbTab
    8.                 Next j
    9.                 Printer.Print vbTab & vbTab & strRowText
    10.             Next i
    11.         End With
    This prints out a nice grid until one of the row headers is too long.


    How can I align this properly?
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width