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%>"
都合并不了