Page 1 of 1

Field 'xxxx' not found.

Posted: Thu Nov 02, 2006 2:06 am
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

Field 'xxxx' not found.

Posted: Thu Nov 02, 2006 3:34 am
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.

Field 'xxxx' not found.

Posted: Thu Nov 02, 2006 3:42 am
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:

Field 'xxxx' not found.

Posted: Thu Nov 02, 2006 8:21 am
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:

Field 'xxxx' not found.

Posted: Thu Nov 02, 2006 8:24 am
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: