Posts

Showing posts with the label .NET Word

Extract Text from PowerPoint Presentation in C#, VB.NET

Image
As we work, we often use PowerPoint Presentation to help us finish our projects. But sometimes we need other formats to meet diffrent work needs.  In such a case, you may run into situations where you want to extract text from PowerPoint Presentation to other applications like Microsoft Word or WordPad to reduce its size. Through the slide.GetAllTextFrame()method provided by Spire.Presentation for .NET, it allows you to extract text from Table, TextBox, shape, shapeGroup, and symbols. You can extract text from the whole PowerPoint presentation. This article will show how to extract text from PowerPoint Presentation in C#, VB.NET from the following two parts. Extract Text from PowerPoint Presentation to WordPad Extract Text from Whole PowerPoint Presentation Install Spire.Doc for .NET To begin with, you need to add the DLL files included in the Spire.Doc for.NET package as references in your .NET project. The DLLs files can be either downloaded from this link or insta...

C#/VB.NET:Convert Word to RTF

Image
        RTF is the abbreviation of Rich Text Format, which means multi-text format, and files such as images can be embedded in RTF documents. This is the document format that Word can save for compatibility with other Word processing software. This article will introduce how to convert Word to RTF format through Spire.Doc for .NET. Install Spire.Doc for .NET To begin with, you need to add the DLL files included in the Spire.Doc for.NET package as references in your .NET project. The DLLs files can be either downloaded from this link or installed via NuGet . PM> Install-Package Spire.Doc Here are the steps: l   Create Word document   l   Using the document.LoadFromFile () method to load the file from disk. l   Using document.SaveToFile() method to save the file in RTF format. Full Code: [C#] using System; using Spire.Doc; using Spire.Doc.Documents;   namespace ConvertToRtf {     public partial cla...