Results 1 to 3 of 3

Thread: Printing an MSFlexGrid

  1. #1
    Guest

    Post

    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!

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You can use the Picture Property of the MSFlexGrid to Print a Representation of the Entire Grid and its Contents, Including Lines, etc..
    Code:
    Private Sub Command1_Click()
        Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
        Printer.EndDoc
    End Sub

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  3. #3
    Guest

    Post

    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: [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width