Hi,
Im using CR8 and visual Basic. I had included a Report Designer in my VB application. In that designer I made the connection to the database and add some fields.
Now, using code I would like to set a group on that report, so I do something like this:
Dim fld As CRAXDDT.DatabaseFieldDefinition
Set fld = CrystalReport1.Database.Tables.Item(1).Fields.Item(1)
CrystalReport1.AddGroup 0, fld, crGCAnyValue, 1
And then I preview the report but the group isn´t there.
If i use the same code in a report external to the application (rqual to that inside the application) I can set that group without any problem!
Can someone tell me what I´m doing wrong?
Thank you.
Im using CR8 and visual Basic. I had included a Report Designer in my VB application. In that designer I made the connection to the database and add some fields.
Now, using code I would like to set a group on that report, so I do something like this:
Dim fld As CRAXDDT.DatabaseFieldDefinition
Set fld = CrystalReport1.Database.Tables.Item(1).Fields.Item(1)
CrystalReport1.AddGroup 0, fld, crGCAnyValue, 1
And then I preview the report but the group isn´t there.
If i use the same code in a report external to the application (rqual to that inside the application) I can set that group without any problem!
Can someone tell me what I´m doing wrong?
Thank you.