Results 1 to 5 of 5

Thread: Assuming Flexgrid cannot be printed

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Location
    Tucson, AZ, USA
    Posts
    95

    Post

    After searching this whole database (50 pages), I found the same question as mine asked 4 other times, none which ever had a reply. I am going to assume that printing the info in a flexgrid cannot be done.

    Thank You,


  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Sure you can.

    Code:
    Private Sub Command1_Click()
        Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
        Printer.EndDoc
    End Sub

  3. #3
    Addicted Member chander's Avatar
    Join Date
    Nov 2000
    Location
    New Delhi , India
    Posts
    225

    Assuming Flexgrid cannot be printed


    But it works with the whole flex grid control.what if some one has to print some contens or selected area of grid.

    Chander
    Chander
    Email:[email protected]

  4. #4
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    Hi
    Is this what you are looking for?

    Code:
      Dim iCol As Integer, iRow As Integer
        
      iCol = MSFlexGrid1.Cols
      iRow = MSFlexGrid1.Rows
      
    For I = 0 To iRow
     For x = 0 To iCol
    Printer.Print MSFlexGrid1.TextMatrix(I, 0) & "    " & MSFlexGrid1.TextMatrix(I, 1) & "    " & MSFlexGrid1.TextMatrix(I, 2)
    Printer.Print
    
    
    
    Next I
    Printer.EndDoc

  5. #5
    Addicted Member chander's Avatar
    Join Date
    Nov 2000
    Location
    New Delhi , India
    Posts
    225

    Smile

    Oh ! thats gr8 , i was looking for it only , actually i havn't studied(analysed) how to do it as i was working on some other module , but good if u have already gave me this . Thanks for the same .

    Chander
    Chander
    Email:[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