找回密码
 立即注册

QQ登录

只需一步,快速开始

lmm1508561

高级会员

7

主题

36

帖子

1377

积分

高级会员

积分
1377

活字格认证

lmm1508561
高级会员   /  发表于:2012-3-12 11:03  /   查看:5091  /  回复:5
1、有没Spread.net 中文文档 ?
2、类似office功能菜单的开发参考哪个章节?如:单元格格式、样式、公式什么的等等其他功能开发。。。 (本人英语不行)

5 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2012-3-12 11:34:00
沙发

回复 1# lmm1508561 的帖子

lmm1508561 你好,

1. Spread for ASP.NET 目前没有中文文档。

2.在帮助文档-Developer’s Guide 部分有关于 Spread 功能概述。可分别参考:Developer’s Guide 下:
   单元格格式->Customizing with Cell Types.
   单元格样式->Customizing the Appearance->Customizing the Appearance of a Cell.
   公式->Managing Formulas.
回复 使用道具 举报
lmm1508561
高级会员   /  发表于:2012-3-12 13:21:00
板凳

jpg

jpg

你们有没有office菜单开发示例?


还有一个就是我设置好这些格式、样式、公式,我怎么去获取那些单元格设置格式、样式、公式等?
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-3-12 16:30:00
地板

回复 3# lmm1508561 的帖子

lmm1508561 你好,

1.目前没有 Office Menu 开发示例,不过具体问题可以提出,我们共同解决。

2.下面是问题 2 的设置和获取方法,方法不唯一:
  1. //设置单元格样式
  2.             FarPoint.Web.Spread.StyleInfo style = new FarPoint.Web.Spread.StyleInfo();
  3.             style.BackColor = System.Drawing.Color.Red;
  4.             this.FpSpread1.Sheets[0].SetStyleInfo(0, 0, style);
  5.             //获取单元格样式
  6.             FarPoint.Web.Spread.StyleInfo getStyle = this.FpSpread1.Sheets[0].GetStyleInfo(0, 0);
  7.             //设置单元格类型
  8.             FarPoint.Web.Spread.ButtonCellType buttonCellType = new FarPoint.Web.Spread.ButtonCellType();
  9.             this.FpSpread1.Sheets[0].Cells[0, 2].CellType = buttonCellType;
  10.             //获取单元格类型
  11.             string cellType = this.FpSpread1.Sheets[0].Cells[0, 0].CellType.ToString();
  12.             //设置公式
  13.             this.FpSpread1.Sheets[0].Cells[0, 0].Text = "1";
  14.             this.FpSpread1.Sheets[0].Cells[0, 1].Text = "1";
  15.             this.FpSpread1.Sheets[0].Cells[0, 2].Formula = "SUM(A1:B1)";
  16.             //获取公式
  17.             string getFormula = this.FpSpread1.Sheets[0].Cells[0, 2].Formula;
复制代码
可以参考帮助文档中的代码片段,或者随机 Demo,路径为-&gtrogram Files\GrapeCity\Spread.ASP.5.dotNet20\v5.0.2015\Samples
回复 使用道具 举报
lmm1508561
高级会员   /  发表于:2012-3-13 09:35:00
5#
嗯好的,谢谢
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-3-13 09:44:00
6#

回复 5# lmm1508561 的帖子

:share:
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部