how to group fields in crystal reports using vb.net code?

Posted by meenakshi on Stack Overflow See other posts from Stack Overflow or by meenakshi
Published on 2010-03-27T07:34:18Z Indexed on 2010/03/27 8:23 UTC
Read the original article Hit count: 171

Filed under:
|

I am using vb.net 2005. i am trying to set report groupings of a crystal report at runtime based on user defined options. MSDN says this:

Dim FieldDef As FieldDefinition
FieldDef = 
Report.Database.Tables.Item(0).Fields.Item(comboBox1().Text)
Report.DataDefinition.Groups.Item(0).ConditionField = FieldDef 

but error shows invalid group number

how to solve this?

© Stack Overflow or respective owner

Related posts about crystal-reports

Related posts about vb.net