Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed May 15, 2013 7:53 am

Hello,

I have a problem with tables.

I have a rtf-file with tables. Now I read the rtf with spire doc into my application and find my table-object. Then I iterate over the rows of the table.

Inspecting the cells I cant find the Information about col-spans or row-spans. Where in the Object are these Informations coded?

Could you please give me an answer?

Thanks

mbi GmbH
 
Posts: 11
Joined: Mon Feb 25, 2013 9:52 am

Wed May 15, 2013 10:43 am

Hello,

Thanks for your inquiry.

We are investigating the issue, once there are any progress, I will get it back to you ASAP.

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri May 24, 2013 6:06 am

Hi,

could you please give me an answer about the progess of investigation of my problem with the coded row- and colspan informations in the TableCell-Object.

Thank you

mbi GmbH
 
Posts: 11
Joined: Mon Feb 25, 2013 9:52 am

Fri May 24, 2013 10:13 am

Hello,

Sorry for inconvenience.

Our spire doc doesn't have a method to get the col-spans and row-spans directly at present, but we are trying a solution to help you to get them by calculating. Once the solution is finished, we will provide you it ASAP.

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue May 28, 2013 8:37 am

Hello,

Sorry for the delay reply and inconvenience.

We have figured out the solution to get the col-spans or row-spans, and it has been attached, please refer to it.

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue May 28, 2013 11:23 am

Hello,

thanks for your solution but unfortunately it does not work properly.

I attach an rtf example file which shows the problem.

The Problem is the third row. As you can see it contains a first column with rowspan on the second row of 2. Then the code generates 2 further columns in the third row but it should create only 1 because the first column is provided by the rowspan of the second row.

Here's the result of the codegeneration

<TABLE border="0">
<TBODY>
<TR>
<TD valign="top" colspan="2" align="left">
<A Groesse="normal">Verbund 1A</A>
</TD>
<TD valign="top" align="left">
<A Groesse="normal"> 1B</A>
</TD>
</TR>
<TR>
<TD valign="top" rowspan="2" align="left">
<A Groesse="normal">2/3A</A>
</TD>
<TD valign="top" align="left">
<A Groesse="normal"> 2B</A>
</TD>
<TD valign="top" align="left">
<A Groesse="normal"> 2C</A>
</TD>
</TR>
<TR>
<TD valign="top" align="left"> <!-- THIS TD SHOULD NOT BE THERE -->
<A Groesse="normal" />
</TD>
<TD valign="top" align="left">
<A Groesse="normal">3B</A>
</TD>
<TD valign="top" align="left">
<A Groesse="normal"> 3C</A>
</TD>
</TR>
</TBODY>
</TABLE>

Many thanks for your efforts to solve the problem.

mbi GmbH
 
Posts: 11
Joined: Mon Feb 25, 2013 9:52 am

Wed May 29, 2013 10:18 am

Hello,

Thanks for your feedback.

In regarding to the issue, please refer to the demo been attached.

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Jun 04, 2013 9:05 am

Hello,

Has the demo code been useful for you? Has the issue been resolved? Could you please update the thread if convenience?

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Jun 20, 2013 8:49 am

Thanks for you help.

Works fine.

Greetings from Germany.

mbi GmbH
 
Posts: 11
Joined: Mon Feb 25, 2013 9:52 am

Return to Spire.Doc