找回密码
 立即注册

QQ登录

只需一步,快速开始

xgsoftware

注册会员

12

主题

29

帖子

198

积分

注册会员

积分
198

活字格认证

xgsoftware
注册会员   /  发表于:2015-11-18 13:35  /   查看:8078  /  回复:12
通过如下代码隐藏CommandBar按钮,保留了上一页、下一页按钮  ,上传一个Excel文档,当点击下一页的时候报错:      
protected override void Render(HtmlTextWriter writer)
        {
            WebControl Update = this.orgSpread.FindControl("Update") as WebControl;
            if (Update != null)
            {
                Update.Visible = false;
            }

            WebControl Cancel = this.orgSpread.FindControl("Cancel") as WebControl;
            if (Cancel != null)
            {
                Cancel.Visible = false;
            }

            WebControl Copy = this.orgSpread.FindControl("Copy") as WebControl;
            if (Copy != null)
            {
                Copy.Visible = false;
            }

            WebControl Paste = this.orgSpread.FindControl(&quotaste") as WebControl;
            if (Paste != null)
            {
                Paste.Visible = false;
            }

            // 隐藏打印按钮
            WebControl Print = this.orgSpread.FindControl(&quotrint") as WebControl;
            if (Print != null)
            {
                Print.Visible = false;
            }

            // 隐藏剪切按钮
            WebControl Clear = this.orgSpread.FindControl("Clear") as WebControl;
            if (Clear != null)
            {
                Clear.Visible = false;
            }


            base.Render(writer);
        }
报错:

QQ截图20151118133433.png

12 个回复

倒序浏览
xgsoftware
注册会员   /  发表于:2015-11-18 14:18:00
沙发
Spread 版本为Spread Asp.net 6.0
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-11-18 16:33:00
板凳
回复 2楼xgsoftware的帖子

使用 Spread 8 目前没有重现,我需要安装 Spread 6.0 后测试反馈进一步结果。
回复 使用道具 举报
xgsoftware
注册会员   /  发表于:2015-11-18 17:13:00
地板
好的  感谢
看了下不能上传excel附件   直接使用一个版主本地的excel文件  够分页就行
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-11-18 17:42:00
5#
回复 4楼xgsoftware的帖子

好的。

如果需要上传excel,请压缩成rar或zip格式。
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-11-20 15:32:00
6#
回复 5楼iceman的帖子

使用链接中的安装包:
http://www.gcpowertools.com.cn/d ... preadnetfullinstall(sp3).zip

通过附件demo:
WebApplication17.zip (157.5 KB, 下载次数: 351)
回复 使用道具 举报
xgsoftware
注册会员   /  发表于:2015-11-20 23:18:00
7#
感谢  但是版主给的安装包链接下载不了  找不到页面  
但是我下载了版主的代码看了
好像我们引用的版本不一样  你的是FarPoint.Web.Spread, Version=6.0.3505.2008,
我的是
<%@ Register Assembly="FarPoint.Web.Spread, Version=6.0.3507.2008, Culture=neutral" Namespace="FarPoint.Web.Spread" TagPrefix="FarPoint" %>
版本会不会有影响
回复 使用道具 举报
xgsoftware
注册会员   /  发表于:2015-11-20 23:24:00
8#
我安装的版本是你在另外一个帖子里面说的   是spread 6.0的最后一个版本了  好像发布时间是2013年7月
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-11-23 09:53:00
9#
回复 8楼xgsoftware的帖子

抱歉,上次传安装包网络断了,重新上传的安装包地址为:http://www.gcpowertools.com.cn/d ... ullinstall(sp3).zip
那应该没有这个问题,回滚bug是很少见的,能否请你发送demo到论坛我尝试重现问题?
回复 使用道具 举报
xgsoftware
注册会员   /  发表于:2015-11-23 17:03:00
10#
附件是我的代码地址,VS2013创建的
http://pan.baidu.com/s/1ntEPKOp
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部