Field 'xxxx' not found.

Stimulsoft Reports.NET discussion
Post Reply
ngaheer
Posts: 44
Joined: Sat Jul 22, 2006 1:12 am
Location: San Jose

Field 'xxxx' not found.

Post by ngaheer »

We have a banner page that we print as a first page in all of our reports. This page basically captures some custom information about the report being printed. The way we designed this was to place a bunch of variables on the report and then call these APIs to set the values of those variables: -

Dim BannerPage As StiReport = New StiReport
BannerPage.Load("BannerPage.mrt")
BannerPage.Compile()
BannerPage("ReportName") = report.REPName
BannerPage("OutputFieldSetName") = report.OutFieldSet.OFSName


What we are noticing is that if we run the report 2 or 3 times, we run into this "Field OutputFieldSetName not found" error. I debugged and I do see Dictionary property of the StiReport, having a variable of name 'OutputFieldSetName', so I am not sure why We are getting the Field not found error.

Any help will be greatly appreciated.

Narinder
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Field 'xxxx' not found.

Post by Edward »

ngaheer wrote:We have a banner page that we print as a first page in all of our reports. This page basically captures some custom information about the report being printed. The way we designed this was to place a bunch of variables on the report and then call these APIs to set the values of those variables: -

Dim BannerPage As StiReport = New StiReport
BannerPage.Load("BannerPage.mrt")
BannerPage.Compile()
BannerPage("ReportName") = report.REPName
BannerPage("OutputFieldSetName") = report.OutFieldSet.OFSName


What we are noticing is that if we run the report 2 or 3 times, we run into this "Field OutputFieldSetName not found" error. I debugged and I do see Dictionary property of the StiReport, having a variable of name 'OutputFieldSetName', so I am not sure why We are getting the Field not found error.

Any help will be greatly appreciated.

Narinder
We can't reproduce this bug. We have checked your code but did not get error message your specified.
Please show all of your code and the way how your call it many times.
Thank you.
DG
Posts: 5
Joined: Fri Aug 04, 2006 2:03 am

Field 'xxxx' not found.

Post by DG »

@ngaheer

Maybe you accidentally set the variables to read-only. You'll get a FieldAccessException in that case. Happened to me once, took me a couple of hours to figure it out :emb:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Field 'xxxx' not found.

Post by Edward »

DG wrote:@ngaheer

Maybe you accidentally set the variables to read-only. You'll get a FieldAccessException in that case. Happened to me once, took me a couple of hours to figure it out :emb:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Field 'xxxx' not found.

Post by Edward »

DG wrote:@ngaheer

Maybe you accidentally set the variables to read-only. You'll get a FieldAccessException in that case. Happened to me once, took me a couple of hours to figure it out :emb:
Post Reply