Click to See Complete Forum and Search --> : Printing an MSFlexGrid
I am writing a program to print out a table (preferably with the gridlines) from a flexgrid. And I don't know how to go about it. I can't find a method inside the grid to do it for me. so it looks like ill have to do it manually.
Have any of you guys ever tried this? the table is a fairly simple one, and i can mail you scanned example.
Any help would be cool!
Aaron Young
Jan 20th, 2000, 01:43 AM
You can use the Picture Property of the MSFlexGrid to Print a Representation of the Entire Grid and its Contents, Including Lines, etc..
Private Sub Command1_Click()
Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
Printer.EndDoc
End Sub
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
Yep, that works, but im getting some weird results when printing, like sometimes the text is massive when the columns are centered, this even happens when i use the width argument in the printer.paintpicture function.
------------------
Wossname,
Email me: wossnamex@talk21.com :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.