print 问题
点了打印按钮了后 出现图上错误 表格是正常出现的回复 1楼langren82的帖子
目前的截图看不出具体问题,请参考截图建议,在 web.config 文件中配置 <customerErrors> 结点,再上传错误信息。
谢谢 我做了些测试 发现如果不把 commandbar 上的其他项隐藏 就不会出这个错误 就是这个
protected override void Render(HtmlTextWriter writer)
{
WebControl update = FpSpread1.FindControl("Update") as WebControl;
update.Visible = false;
WebControl copy = FpSpread1.FindControl("Copy") as WebControl;
copy.Visible = false;
WebControl clear = FpSpread1.FindControl("Clear") as WebControl;
clear.Visible = false;
WebControl paste = FpSpread1.FindControl("Paste") as WebControl;
paste.Visible = false;
WebControl print = FpSpread1.FindControl("Print") as WebControl;
print.Visible = true;
WebControl cancel = FpSpread1.FindControl("Cancel") as WebControl;
cancel.Visible = false;
base.Render(writer);
} 没有这个 就不会出错 回复 4楼langren82的帖子
请修改为以下代码:
protected override void Render(HtmlTextWriter writer)
{
WebControl update = FpSpread1.FindControl("Update") as WebControl;
if (update!=null)
update.Visible = false;
WebControl copy = FpSpread1.FindControl("Copy") as WebControl;
if (copy!=null)
copy.Visible = false;
WebControl clear = FpSpread1.FindControl("Clear") as WebControl;
if (clear!=null)
clear.Visible = false;
WebControl paste = FpSpread1.FindControl("Paste") as WebControl;
if (paste!=null)
paste.Visible = false;
WebControl print = FpSpread1.FindControl("Print") as WebControl;
if (print!=null)
print.Visible = true;
WebControl cancel = FpSpread1.FindControl("Cancel") as WebControl;
if (cancel!=null)
cancel.Visible = false;
base.Render(writer);
}
ok 解决了 谢谢 回复 6楼langren82的帖子
好的,不客气。
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢
http://gcdn.gcpowertools.com.cn/attachment.aspx?attachmentid=10062
页:
[1]