Have you tried PrintForm ?
If that does not show the detail.... try the following code
... I have used it to print contents of a MSFlexGrid
- Add a Picture control to your grid form
- set visible to FALSE
Please reply back to this forum to tell me if this
worked for you.
John
Private Sub btnPrintGrid_Click()
'When the form contains a M$FlexGrid, the usual way of printing a form, the PrintForm method,
'will result in no grid data showing on the print-out.
'Sooo... this sub copies the grid image to a Picture control,
'then sends the Picture control to the printer.
'It works surprisingly well and is much easier than exporting
'data to an Excel worksheet for the purpose of printing.
'Note: Make the Picture controls VISIBLE property = False
'This method works in VB 6.
'(I dont know if all the data will print when the grid contains
'more rows than can fit on 1 screen)
Dim sScale As Double
Dim sHeading As String
sHeading = "Frigidaire: Virtual Loads"
I tried it on mine and it works. I just wish you can have more control on the product. Mine prints two thirds of the way and then cuts off the printing.
ALSayegh - we need alot more information than just "it does not work" to be able to help you.
TondoBoy - You said it only printed two thirds of the grid ?
Maybe you could adjust the settings in the Printer.PaintPicture line OR change to a smaller Font
setting to see if you then get more detail lines printed...
just a thought.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.