|
-
Nov 8th, 2004, 01:52 PM
#1
Thread Starter
Member
Printing
How do I go about printing the contents of a mshflexgrid?
-
Nov 8th, 2004, 02:06 PM
#2
Lively Member
You have to use nested loops for the rows and cols, the .textmatrix property to read the cell contents.
-
Nov 8th, 2004, 02:24 PM
#3
Thread Starter
Member
can you post an example pls? ive never used this before..
-
Nov 8th, 2004, 03:14 PM
#4
Lively Member
This should get you started.
VB Code:
dim C as Long
dim R as Long
dim str as String
For R = 0 to Grid.Rows -1
For C = 0 to Grid.Cols -1
str = str & Grid.TextMatrix(R, C) & vbtab
Next C
Printer.Print str
str = ""
Next R
-
Nov 8th, 2004, 06:21 PM
#5
Software Eng.
Make sure you invoke the EndDoc method to commence printing
Printer.EndDoc
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
|