Categories > OpenTBS with DOCX >

Re: How to merge table cells?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Sandeep
Date: 2013-04-16
Time: 11:24

Re: How to merge table cells?

Hi, I am unable to merge table cell in ms docx. my template having 4 columns and 4 rows.
In first column and 1st row : [data.cluster_name;block=w:tr;sub1=assoc;sub2=primary;sub3=programmer;sub4=partner;sub5=trans;w:vMerge w:val=”restart”;ondata=f_add_column;when [data.show_dates]==0]
In first column and 2nd row: [data.cluster_name;block=w:tr;sub1=assoc;sub2=primary;sub3=programmer;sub4=partner;sub5=trans;w:vMerge; ondata=f_add_column;when [data.show_dates]==1]
In first column and 3 row: [data.cluster_name;block=w:tr;sub1=assoc;sub2=primary;sub3=programmer;sub4=partner;sub5=trans;w:vMerge; ondata=f_add_column;when [data.show_dates]==2]
In first column and 4 row:  [data.cluster_name;block=w:tr;sub1=assoc;sub2=primary;sub3=programmer;sub4=partner;sub5=trans;w:vMerge; ondata=f_add_column;when [data.show_dates]==3]

Now I want to merge 1st and 2nd row of the first column if value is same of both rows i.e. 1st and 2nd row of the first column. 

How can I do this?
Thanks in advance.
By: Skrol29
Date: 2013-04-16
Time: 23:02

Re: How to merge table cells?

Hi Sandeep,

I've put the post in a new thread.
The previus one is http://www.tinybutstrong.com/forum.php?thr=3109

I don't understand why you TBS fields has paramaters such as "w:vMerge w:val=”restart”"
Nevertheless, your problem looks like the previous one. In think you just have to insert a <w:vMerge> element in each first cell of those 4 rows and it should work just like before.
By: Sandeep
Date: 2013-04-17
Time: 05:48

Re: How to merge table cells?

Thanks for your reply.

I request to you please show me an example on above. As I understand, you are saying like this below :[data.cluster_name;block=w:tr;sub1=assoc;sub2=primary;sub3=programmer;sub4=partner;sub5=trans;w:vMerge;ondata=f_add_column;when [data.show_dates]==0]

Am I right here?

Thanks in advance.
By: Sandeep
Date: 2013-04-17
Time: 06:45

Re: How to merge table cells?

my point is merging two or more rows vertically if values are same of those rows in first column.
Hope you will get my point.

I have table in docx having 4 columns. Now there are 4 rows with value
col1   col2    col3    col4
A       B         C       D
L       X          Y       Z
M       N         O       P
A       W         E        F

Now here value A is same in two rows of first column. I want to merge 1st and 4th rows above like output as below:
col1   col2    col3    col4
         B         C       D
A
         W         E        F
L        X          Y       Z
M       N         O       P

I need to do this kind of output. How is it possible this output from Opentbs plugin?
Please let me know if you need template file with data array for your reference.

Thanks in advance.
By: Skrol29
Date: 2013-04-18
Time: 01:38

Re: How to merge table cells?

By: Sandeep
Date: 2013-04-18
Time: 04:01

Re: How to merge table cells?

Thanks for your reply.

As you know this is like row span. is it supporting row span in docx and xlsx? I think, my requirement is like same as row span as you see above example in output value A is in row span.

Can we do same it in new plugin beta version?


Thanks and waiting for your reply.
By: Skrol29
Date: 2013-04-19
Time: 00:05

Re: How to merge table cells?

Unfortunately it is to complicated to have the 'mergecell' feature for ODT, ODS and XLSX for now.
Sorry for that.
By: Sandeep
Date: 2013-04-26
Time: 11:34

Re: How to merge table cells?

Hi,
I am using latest plugin in my code for mergecell in .docx but It is not working properly sometimes. I don't know where it is doing wrong.
Can you please help me on it?

Thanks in advance,
Sandeep
By: Skrol29
Date: 2013-04-26
Time: 11:54

Re: How to merge table cells?

Ok, I will have a look at the template you sent to me.