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.
Field 'xxxx' not found.
We can't reproduce this bug. We have checked your code but did not get error message your specified.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
Please show all of your code and the way how your call it many times.
Thank you.
Field 'xxxx' not found.
@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:
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.
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.
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: