-
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
-
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
-
Is it connected to a database?
-
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 :-)