Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Access Crystal Reports field values programmatically

$
0
0

I have tried a few different way but can't seem to find what I am looking for...

I am running a Crystal Report programmatically using c#, I need to be able to access the values of the fields in the group header 1 much like the way Visual CUT does when it runs the reports in its scheduler.

I have managed to get a hold of the GroupHeader1 Value by doing:

crystalReport.Rows[i].Rows.ToString();

and thought something like

crystalReport.Rows[i].Rows.Columns[0].Value

would be available, but can't seem to find where I would be able to access the fields and their values at runtime.

I can see the formula I need by going through:

crystalReport.DataDefinition.FormulaFields["ToEmail"].Text

But that just gives me the original value in the formula rather than what the report displays and sees.

I don't load the datasource of the report programmatically either, that is handled by the report itself, so can't even use that info.

Any pointers in the right direction would be greatly appreciated as it is frustrating the life out of me. :)

Thanks.


Viewing all articles
Browse latest Browse all 1507

Trending Articles