|
-
May 22nd, 2001, 08:51 PM
#1
Thread Starter
Addicted Member
Help needed quick
I have an assignment for college due in 2 weeks time. I have a Microsoft
Flexi Grid on my form and basically i want to print it. I have tried
exporting is as a picture using the .picture method but I have no luck. If
anyone can help with the .picture method or show me any other methods Iw
ould be enternaly greaful. Oh one more thing, I would like to print the
WHOLE grid, not just the visible area. Also if the grid is too big that it wont fit onto 1 sheet of A4 then how would I tll VB to split it up onto 2 or more pages.
TIA
Who needs rhetorical questions anyway?
Bazza NET - The place you want to be!

-
May 22nd, 2001, 08:58 PM
#2
Fanatic Member
I don't want to give away all the code (else you'll never learn anything) but you need to use the Printer object, the most important members being CurrentX, CurrentY, Print, and EndDoc...
Code:
Printer.CurrentX = Printer.Width / 2
Printer.CurrentY = Printer.Height / 2
Printer.Print MSFlexGrid1.TextMatrix(1, 1)
Printer.EndDoc ' call EndDoc when you are done sending text to the printer
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
May 22nd, 2001, 08:58 PM
#3
PowerPoster
Is it connected to a database?
-
May 22nd, 2001, 09:01 PM
#4
Thread Starter
Addicted Member
No its not connected to a database. I will try the above code and thanks for the help. I have used the printer function a few times before so I will give it a go and get back to you :-)
Who needs rhetorical questions anyway?
Bazza NET - The place you want to be!

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
|