After searching this whole database (50 pages), I found the same question as mine asked 4 other times, none which ever had a reply. I am going to assume that printing the info in a flexgrid cannot be done.
Thank You,
Printable View
After searching this whole database (50 pages), I found the same question as mine asked 4 other times, none which ever had a reply. I am going to assume that printing the info in a flexgrid cannot be done.
Thank You,
Sure you can.
Code:Private Sub Command1_Click()
Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
Printer.EndDoc
End Sub
But it works with the whole flex grid control.what if some one has to print some contens or selected area of grid.
Chander
Hi
Is this what you are looking for?
Code:
Dim iCol As Integer, iRow As Integer
iCol = MSFlexGrid1.Cols
iRow = MSFlexGrid1.Rows
For I = 0 To iRow
For x = 0 To iCol
Printer.Print MSFlexGrid1.TextMatrix(I, 0) & " " & MSFlexGrid1.TextMatrix(I, 1) & " " & MSFlexGrid1.TextMatrix(I, 2)
Printer.Print
Next I
Printer.EndDoc
Oh ! thats gr8 , i was looking for it only , actually i havn't studied(analysed) how to do it as i was working on some other module , but good if u have already gave me this . Thanks for the same .
Chander