回复 1楼sonicteams的帖子
打印空白页的问题能否发给能够重现问题的例子给我调试以下
服务端打印的问题,无法将文档打印到服务端,都是在客户端点击打印按钮进行打印
如果处于审核过程中不需要编辑操作,可以设置以下属性:
- FpSpread1.ActiveSheetView.OperationMode = FarPoint.Web.Spread.OperationMode.ReadOnly;
复制代码
完整代码如下:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- FarPoint.Web.Spread.ComboBoxCellType cbct = new FarPoint.Web.Spread.ComboBoxCellType();
-
- cbct.Items = new string[] { "AAA","BBB","CCC"};
- cbct.Values = new string[] { "AAA", "BBB", "CCC" };
- cbct.UseValue = true;
-
- FpSpread1.ActiveSheetView.Columns[0].CellType = cbct;
- FpSpread1.ActiveSheetView.Cells[0, 0].Value = "AAA";
- FpSpread1.ActiveSheetView.Cells[1, 0].Value = "BBB";
- FpSpread1.ActiveSheetView.Cells[2, 0].Value = "AAA";
- FpSpread1.ActiveSheetView.OperationMode = FarPoint.Web.Spread.OperationMode.ReadOnly;
- }
- }
复制代码 |