Cannot access individual rows in this collection because

Source: Internet
Author: User

We often encounter the following problems when processing tables. Neither add nor delete Row can be operated directly. "Cannot access individual rows in this collection because the table has vertically merged cells. C #" is my summary. -------------------------------------------------------- | A | B ----------------- | C | the upper table is the approximate form, B is the cross-row, and A and C are on two rows, respectively, I need to use the program to dynamically add line doc like B and C. tables [1]. rows. add (ref beforRow); this code is just for a table with very good rules. What should I do? 1. doc. Tables [1]. Cell (2, 3). Split (ref rownum, ref colnum); // Split the merged cells into normal ones. Then use the preceding statement. 2. object beforRow = doc. Tables [1]. Cell (2, 3); doc. Tables [1]. Rows. Add (ref beforRow );

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.