Posts

Showing posts from October, 2022

How to Align Text in Word with C#/VB.NET?

Image
  Word Text Alignment contains four styles: align left, align center, align right, and justify. All these kinds are frequently used when we set our word text styles. Alignment allows you to make your document pages look neat and tidy.  Thus, text alignment can be indispensable for word users. In this article, you will learned how to align text in Word with C#/VB.NET . Before I show the method to alignment text in word with C#, VB.NET. I suggest use a word component  Free Spire.Doc for .NET  to help me finish this task. Read on for more information.   Programming Environment In this test, Free Spire.Doc for .NET is introduced into the program. The Spire.Doc.dll file can be referenced by:   Method 1: Download Free Spire.Doc for .NET locally, unzip it, and install it. After the installation is complete, find Spire.Doc.dll in the BIN folder under the installation path. Then open the "Solution Explorer" in Visual Studio, right-click "References", "Ad...

How to Quickly Delete Extra Blank Lines in Your Word Document in C#/VB.NET?

Image
  The document downloaded from the web has too many empty lines (manual line breaks). Manually removing ex tra blan k lines from a Word document is tedious. To save paper and space, we need to remove all empty lines. Is there an easier way to remove all empty lines instead of deleting each one manually? This tutorial will list a method for removing all empty lines in an existing Word document. Read on for more information. Programming Environment In this test, Free Spire.Doc for .NET is introduced into the program. The Spire.Doc.dll file can be referenced by: Method 1: Download Free Spire.Doc for .NET locally, unzip it, and install it. After the installation is complete, find Spire.Doc.dll in the BIN folder under the installation path. Then open the "Solution Explorer" in Visual Studio, right-click "References", "Add Reference", and add a reference to the dll file in the BIN folder of the local path to the program. Method 2: Install via NuGet...