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
Re: how to display flexgrid data in report without....
Quote:
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.