CodePudding user response:
Free spire. Doc. DLL, package there. Netcore DLL, should be can realize columns, code for reference:
Using Spire. Doc;
The namespace Word columns
{
Class Program
{
The static void Main (string [] args)
{
//initialize the Document instance
Document doc=new Document ();
//load the existing document
Doc. LoadFromFile (" test. Docx ");
//get the second section
Section Section=doc. Sections [1];
//to add two columns, and set the width of each bar and the spacing of both
Section. AddColumn (300, 30);
//section. AddColumn (150 f, 10 f);
//show the line
Section. The PageSetup. ColumnsLineBetween=true;
//save and open the document
Doc. SaveToFile (" add columns. Docx, FileFormat Docx2013);
System. Diagnostics. Process. The Start (" add columns. Docx ");
}
}
}
Column: