Results 1 to 2 of 2

Thread: how to display flexgrid data in report without....

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2004
    Location
    India
    Posts
    27

    how to display flexgrid data in report without....

    Hi Everyone

    I want to be displayed data of flexgrid row in datareport without storing in data base
    i tried it with textbox it is ok

    but with flexgrid
    it gives error likw subscript is out of range
    i tried like given below

    private sub command1_click()
    With DataReport1.Sections(1)
    .Controls("txtitemcode").Text = Form1!msflexgrid1.TextMatrix(newrow, 1)
    End With
    DataReport1.Refresh
    DataReport1.Show
    end sub



    Please help me

    Waiting for reply
    Last edited by asifbhura; Mar 29th, 2004 at 11:54 PM.
    bhuraAM

  2. #2
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    Re: how to display flexgrid data in report without....


    it gives error likw subscript is out of range
    That means you are looping beyong the range of your flexgrid. For example, the size of your msflexgrid is 4x10, your current pointer must be at 5+ or 10+ or you may have nothing at all inside the grid.

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