Home c# Word Interop C # how to split the cell on the strings

Word Interop C # how to split the cell on the strings

Author

Date

Category

I ask for help!
There was a need to fill in the table as such a template:

The template itself looks like this:

For filling, a class is used with properties with the type of data type (type, goods). In principle, this is not particularly important. You can also fill out from the database.

In the Word application itself, there is a cell separation function:

How can you fill in such a table? If there is the same way to divide the cell, how to further fill these cells? Maybe you can immediately add filled lines (not table) into the cell?


Answer 1

Now I realized that you need to read the documentation …

SPLIT method for Cell class:
https://docs.microsoft.com/ru-ru/dotnet/api/microsoft.office.interop.Word.cell.Split?View=Word-piaMicrosoft_Office_Interop_Word_Cell_System_System_Object__System_Object__

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions