Page 1 of 1

Question. table column access

PostPosted: Mon Sep 07, 2015 4:32 pm
by yangcom0505
hi.

I made 2x2 table and Programmatically repeated.

ref below attached file.
q.JPG
q.JPG (27.58 KiB) Viewed 1450 times


I can write Title and name. but I don't know how to write leftName and rightName.

just i can write leftName or rightName.

i can't write both left and right name.

Re: Question. table column access

PostPosted: Mon Sep 07, 2015 5:27 pm
by jason
Not sure what you are asking.

In your question, what is "leftName" and "rightName"?

Re: Question. table column access

PostPosted: Mon Sep 07, 2015 5:46 pm
by yangcom0505
hello jason.

i made word template. and used content control.

control's name is title, leftName, RifghtName. and i want to repeat name and img cells not title img cells.

i want to insert name left cell and right cell in the same row.

but i failed.

when left cell name filled, right cell blank. and next tr, left cell blank right cell name filled.

title/img ignore

i want to just insert name same tr

Re: Question. table column access

PostPosted: Mon Sep 07, 2015 6:16 pm
by yangcom0505
in my opinion, you didn't clicked the picture.

The picture seems to be truncated.

Re: Question. table column access

PostPosted: Mon Sep 07, 2015 6:44 pm
by yangcom0505
how can i wrtie specific cell (e.g third row and second column)

Re: Question. table column access

PostPosted: Mon Sep 07, 2015 8:31 pm
by jason
Are you using OpenDoPE repeats, or some different approach of your own to repeat the cells?

Re: Question. table column access

PostPosted: Mon Sep 07, 2015 8:57 pm
by yangcom0505
I'm not using OpenDope.
i'm using class SdtElementDataBinder and IndentingVisitorCallback.

for(int i=0; i<list.size();i++){
((Tbl) tables.get(DOC_TABLE_0)).getContent().set(0, XmlUtils.deepCopy(tr));
}

thanks!

Re: Question. table column access

PostPosted: Mon Sep 07, 2015 9:46 pm
by yangcom0505
hi jason.

i successed insert title both sides.

It was a whirlwind trip.

thanks.