| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 696 人关注过本帖
标题:ASP 合并单元格问题
只看楼主 加入收藏
yuanmei1024
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2008-3-31
收藏
 问题点数:0 回复次数:0 
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-05-21 09:27
快速回复:ASP 合并单元格问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019416 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved