Posted 8 September 2017, 6:28 pm EST
When I use the Print button on my Spread I get this error right on the printed page:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
This is the stack trace:
[HttpException (0x80004005): The Controls collection cannot be modified because the control
System.Web.UI.ControlCollection.RemoveAt(Int32 index) +2057591 System.Web.UI.ControlCollection.Clear() +25 FarPoint.Web.Spread.FpSpread.OnPrint() +204 FarPoint.Web.Spread.FpSpread.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
This only happens in my current solution. If I start a new project with a simple databound spread, it works.
Does anybody know why I keep getting this error?
Regards
Julio