This is a migrated thread and some comments may be shown as answers.

Problem with subreport binding, error due the textbox(design) after the report generated

1 Answer 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prasad
Top achievements
Rank 1
Prasad asked on 08 Feb 2010, 10:56 AM

Hi,

I am working on Telerik Reporting. I am trying to design a report which has a subreport.
I have taken a report item >> assigned a query in the report wizard >> assigned the fields in the detail section of main report. In the properties of the main report i have given a parameter and filter properties. Now i dragged a subreport item into the detail section.
Designed another report (parameter and filter properties were given) in the same above way and assigned this report as a ReportSource to the subreport (in the main report).
Now i am assigning a dataset to the datasource of main report and subreport. Below two lines were written in the NeedDataSource event of Subreport for Conditional basis.

 

" Dim

 

item As Processing.ReportItemBase = DirectCast(sender, Processing.ReportItemBase)

 

 

Me.SubReport1.Parameters(0).Value = item.DataObject("CF ID") "

When i am trying to generate the report i am facing an error saying that -
" An error has occured while processing textbox 'textbox6'.
The expression contains object CF_Name that is not defined in the current context. "

Here in the design all the fields were assigned through the Query from the wizard.

Can you please explain me what could be the  mistake in this process and it would be very helpfull if you can provide a sample application or a doucument (I have done the above process following the guide in telerik site) regarding this "Master - Child report."
This is a very very urgent requirement. Thank you.

Regards,
Prasad.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Feb 2010, 06:13 PM
Hello Prasad,

This is a generic error which means that there is no such field (CF_Name) in the provided datasource. If your columns have spaces in their names, the textbox expressions should look like this:

=Fields.[CF ID]

so that the proper name is evaluated.

Sincerely yours,
Steve
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
General Discussions
Asked by
Prasad
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or