It´s only wrapping the spread. The problem comes when you try to set some properties to use the control.
Put this line on Fom_Load: (setting 10 columns to control)
private void FarPointSpreadForm_Load(object sender, EventArgs e)
{
mobjFpSpreadWrapper.Columns.Count = 10;
}
It gives a message:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Request is not available in this context]
System.Web.UI.Page.get_Request() +8696984
FarPoint.Web.Spread.FpSpread.r() +313
FarPoint.Web.Spread.FpSpread.get_EnableClientScript() +459
FarPoint.Web.Spread.SheetView.get_FpSpread() +81
FarPoint.Web.Spread.SheetView.a(ISheetAxisModel A_0, Int32 A_1) +41
FarPoint.Web.Spread.SheetView.GetRowVisible(Int32 row) +158
FarPoint.Web.Spread.SheetView.SaveViewState() +3113
FarPoint.Web.Spread.FpSpread.SaveViewState() +2678
System.Web.UI.Control.SaveViewStateRecursive() +187
System.Web.UI.Control.SaveViewStateRecursive() +106
System.Web.UI.Control.SaveViewStateRecursive() +106
System.Web.UI.Control.SaveViewStateRecursive() +106
System.Web.UI.Control.SaveViewStateRecursive() +106
System.Web.UI.Control.SaveViewStateRecursive() +106
System.Web.UI.Page.SaveAllState() +168
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
Gizmox.WebGUI.Forms.Hosts.AspPipeLinePage.SaveStateInternal() +125
Gizmox.WebGUI.Forms.Hosts.AspControlBoxBase.Render(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID) +86
Gizmox.WebGUI.Forms.Control.RenderControl(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID) +260
Gizmox.WebGUI.Forms.Control.RenderControl(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID, Control objFillControl, Int32 intIndex) +107
Gizmox.WebGUI.Forms.Control.RenderControls(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID) +238
Gizmox.WebGUI.Forms.Form.RenderControls(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID) +255
Gizmox.WebGUI.Forms.Form.Render(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID) +86
Gizmox.WebGUI.Forms.Form.RenderControl(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID) +266
Gizmox.WebGUI.Forms.Form.Gizmox.WebGUI.Common.Interfaces.IForm.RenderForm(IContext objContext, IResponseWriter objWriter, Int64 lngRequestID) +48
Gizmox.WebGUI.Server.Content.ProcessRequest(HttpContext objHttpContext) +5297
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
Gizmox.WebGUI.Server.Content.ProcessRequest(HttpContext objHttpContext) +6310
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Posted by mblank on Sunday, October 18, 2009 6:48 AM