PDA

Click to See Complete Forum and Search --> : Assuming Flexgrid cannot be printed


Ed_Farias
Feb 23rd, 2000, 05:51 AM
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,

Serge
Feb 23rd, 2000, 06:39 AM
Sure you can.


Private Sub Command1_Click()
Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
Printer.EndDoc
End Sub

chander
Nov 23rd, 2000, 07:17 AM
But it works with the whole flex grid control.what if some one has to print some contens or selected area of grid.

Chander

CoMMiE
Nov 24th, 2000, 12:15 PM
Hi
Is this what you are looking for?



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

chander
Nov 26th, 2000, 07:06 AM
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