| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
高端软件开发 = 年薪十万不是梦赛孚耐:软件保护加密专家身份认证令牌USB KEY 
共有 177 人关注过本帖
标题:ASP 合并单元格问题
收藏  订阅  推荐  打印
yuanmei1024
Rank: 1
等级:新手上路
帖子:7
积分:192
注册:2008-3-31
ASP 合并单元格问题

<SCRIPT LANGUAGE=vbscript>
ReportGrid2.Rows = 10
ReportGrid2.Cols = 12
ReportGrid2.FixedRows = 2
ReportGrid2.Fixedcols = 2
ReportGrid2.FontSize = 9
ReportGrid2.MergeCells = 1

'ReportGrid2.FontBold = True
ReportGrid2.Row = 1
ReportGrid2.TextMatrix(0,1)="Operation"
ReportGrid2.TextMatrix(0,2)=" In "
ReportGrid2.TextMatrix(0,3)=" Out "
ReportGrid2.TextMatrix(0,4)=" Out "
ReportGrid2.TextMatrix(0,5)=" Out "
ReportGrid2.TextMatrix(0,6)="To be scrap"
ReportGrid2.TextMatrix(0,7)=" Wip "
ReportGrid2.TextMatrix(0,8)=" Wip "
ReportGrid2.TextMatrix(0,9)=" Wip "
ReportGrid2.TextMatrix(0,10)=" Wip "
ReportGrid2.TextMatrix(0,11)=" Wip "

ReportGrid2.TextMatrix(1,1)="Operation"
ReportGrid2.TextMatrix(1,2)=" In "
ReportGrid2.TextMatrix(1,3)=" rework "
ReportGrid2.TextMatrix(1,4)="rework(1)以上"
ReportGrid2.TextMatrix(1,5)=" rate "
ReportGrid2.TextMatrix(1,6)="To be scrap"
ReportGrid2.TextMatrix(1,7)=" S1 "
ReportGrid2.TextMatrix(1,8)=" S2"
ReportGrid2.TextMatrix(1,9)=" S3"
ReportGrid2.TextMatrix(1,10)="Wip Hold"
ReportGrid2.TextMatrix(1,11)="not hold"
ReportGrid2.MergeCol(0)= True
ReportGrid2.MergeRow(0)= true
ReportGrid2.MergeRow(1)= true
ReportGrid2.MergeRow(3)= true
ReportGrid2.MergeRow(4)= true
ReportGrid2.MergeRow(5)= true
ReportGrid2.MergeRow(6)= true
ReportGrid2.MergeRow(7)= true
ReportGrid2.MergeRow(8)= true
ReportGrid2.MergeRow(9)= true

For i = 1 To 9
ReportGrid2.ColAlignment(i) = 4 ReportGrid2.ColWidth(i) = Len(ReportGrid2.TextMatrix(0,i)) * 180
ReportGrid2.ColWidth(i) = Len(ReportGrid2.TextMatrix(1,i)) * 180
Next
ReportGrid2.ColWidth(0) = 0

ReportGrid2.Rows = "<%=cnt + 1%>"
ReportGrid2.TextMatrix(<%=cnt%>,0)=""
ReportGrid2.TextMatrix(<%=cnt%>,1)="<%=rswvlhtxt1%>"
ReportGrid2.TextMatrix(<%=cnt%>,2)="<%=rswvlhtxt7%>"
ReportGrid2.TextMatrix(<%=cnt%>,3)="<%=rswvlhtxt2%>"
ReportGrid2.TextMatrix(<%=cnt%>,4)="<%=rswvlhtxt2_2%>"
ReportGrid2.TextMatrix(<%=cnt%>,5)="<%=rswvlhtxt8 %>"
ReportGrid2.TextMatrix(<%=cnt%>,6)="<%=rswvlhtxt5%>"
ReportGrid2.TextMatrix(<%=cnt%>,7)="<%=rswvlhtxt6%>"
ReportGrid2.TextMatrix(<%=cnt%>,8)="<%=rswvlhtxt6%>"
ReportGrid2.TextMatrix(<%=cnt%>,9)="<%=rswvlhtxt6%>"
ReportGrid2.TextMatrix(<%=cnt%>,10)="<%=rswvlhtxt10%>"
ReportGrid2.TextMatrix(<%=cnt%>,11)="<%=rswvlhtxt11%>"

只有3个out 和 5个wip合并 ,其他填充了相同数据都合并不了,比如
ReportGrid2.TextMatrix(<%=cnt%>,7)="<%=rswvlhtxt6%>"
ReportGrid2.TextMatrix(<%=cnt%>,8)="<%=rswvlhtxt6%>"
ReportGrid2.TextMatrix(<%=cnt%>,9)="<%=rswvlhtxt6%>"
都合并不了
搜索更多相关主题的帖子: ASP  单元  Out  scrap  
2008-5-21 09:27
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.056000 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved