Setting stroke weight of adiacent cell
hello,
i know if there's way this:
i have series of tables have formatted in specific way. unfortunately, table formatting options i'm able part of these formattings; question is: how can set stroke weight of cell border based on adiacent cell?
see attached image explanation
hope can me!
thanks in advance
hi,
since nobody gave me answer, answered myself javascript:
var mydoc = app.activedocument;
var tottxtframes = mydoc.textframes;
for(i=0; i<tottxtframes.length; i++){
mytxtframe = tottxtframes[i];
tottables = mytxtframe.tables;
for(j=0; j<tottables.length; j++){
mytable = tottables[j];
totrows = mytable.rows;
for(k=0; k<totrows.length; k++){
myrow = totrows[k];
myrowindex = myrow.index;
totcells = myrow.cells;
for(n=0; n<totcells.length; n++){
mycell = totcells[n];
if(mycell.rowspan > 1){
mycellspan = mycell.rowspan;
if(mycell.bottomedgestrokeweight == 0.5){
totrows.item(myrowindex + mycellspan - 1).bottomedgestrokeweight = 0.5;
}
}
else{
mycellspan = mycell.rowspan;
if(mycell.bottomedgestrokeweight == 0.5){
totrows.item(myrowindex + mycellspan - 1).bottomedgestrokeweight = 0.5;
}
}
}
}
}
}
hope might same problem
cheers!
More discussions in InDesign Scripting
adobe

Comments
Post a Comment