dxhshitc 你好
我这边使用 spread for asp.net 6.0 并没有这种现象。我的代码如下,能否将你的工程发给我调试:
运行测试之后,在B1中输入1,C1中输入3,A1单元格并没有将负数显示成括号。
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- FpSpread1.ActiveSheetView.Cells[0, 0].Formula = "B1-C1";
- FpSpread1.ClientAutoCalculation = true;
- }
- }
复制代码- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
-
- <FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black"
- BorderStyle="Solid" BorderWidth="1px" Height="200" Width="400">
- <commandbar backcolor="Control" buttonfacecolor="Control"
- buttonhighlightcolor="ControlLightLight" buttonshadowcolor="ControlDark">
- </commandbar>
- <sheets>
- <FarPoint:SheetView SheetName="Sheet1">
- </FarPoint:SheetView>
- </sheets>
- </FarPoint:FpSpread>
-
- </div>
- </form>
- </body>
- </html>
复制代码 |