|
-
Feb 23rd, 2000, 06:51 AM
#1
Thread Starter
Lively Member
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,
-
Feb 23rd, 2000, 07:39 AM
#2
Sure you can.
Code:
Private Sub Command1_Click()
Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
Printer.EndDoc
End Sub
-
Nov 23rd, 2000, 08:17 AM
#3
Addicted Member
Assuming Flexgrid cannot be printed
But it works with the whole flex grid control.what if some one has to print some contens or selected area of grid.
Chander
-
Nov 24th, 2000, 01:15 PM
#4
Addicted Member
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
-
Nov 26th, 2000, 08:06 AM
#5
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|