Hi,
I am using Aspose.Words 6.1.0 for .NET with Temporary licence. I am reading a document template, that template having a table with one row.
now i need to create another row to the same table, how can i add new row to existing table or how can i copy the first row data and placed as a second row??
I used the code like,
Document docQualItem = new Document(oQualItemTemplate);
DocumentBuilder builderMainSec= new DocumentBuilder(docQualItem );
builderMainSec.MoveToSection(-1);
builderMainSec.MoveToCell(0, 1, 0, 0); // template have one table and only one row
Row newRow = new Row(docQualItem );
builderMainSec.InsertNode(newRow); // i am getting error here...
Hi Alexey,
Thanks for your explanation…
but i am not able to give the reference Row to existing table… like
Row refRow = tab.LastRow;
Bcoz, table is already there in the template(i am not created table in template), so only i can able to move to perticular row in table like,
builderMainSec.MoveToCell(0, 1, 0, 0);
from there i need to create 2nd row…
after moving builder to 1st row of table, how can i create 2nd row…
If i created the table, then i can able to follow the same logic above you explained, but the table is alreday there in template with one row… how should i refer to table like, tab.LastRow;
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.