HTML-to-RTF Pro DLL .Net

Word footnote is a string of text that appears at the end of a page which is commonly used by writers to cite other author’s publication in their document. A footnote is normally flagged by a superscripted number immediately following that portion of the text the note is in reference to. Microsoft Word offers easy solution to insert footnote into Word document. However, by using C#, we can insert footnote into Word document even we don't install Microsoft on system.Spire.Doc for .NET, a professional and powerful .NET Word component, which can easily help us insert footnote into Word document through C# code. Download Spire.Doc for .NET and make sure Spire.Doc for .NET and Visual Studio are correctly installed on system. Follow the simple instructions below to insert footnote into Word document. Step 1 Create Project

How to Use C# Insert Borders in Word Document

Borders are very common in Microsoft Excel worksheet. There we can design border style at will. However, in Microsoft Word, to beautify Word document content, borders can also be inserted with different styles. In This article, you will be introduced a solution to insert border in Word document by using C#.

Borders in Word document can be used to decorate Word document if we can set border style and color. Spire.Doc for .NET, as a professional .NET Word document, it can help us easily insert borders in Word document with styles and color designed.

Download Spire.Doc for .NET Here. Make sure Spire.Doc for .NET and Visual Studio are correctly installed on system. Follow the simple steps below to insert borders in Word document with C#.

Step 1 Create Project

Create a C# project in visual studio add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project. Step 2 Load Word DocumentLoad the word document which we need insert borders. Use the following code below to do the job:Document document = new Document(); document.LoadFromFile(@”E:\work\Documents\Antarctic.docx”); Section section = document.Sections[0];Step 3 Insert Borders in Word DocumentFirst, follow the code below to insert and set border style. section.PageSetup.Borders.BorderType = BorderStyle.ThickThinLargeGap; section.PageSetup.Borders.Color = Color.DeepSkyBlue;Second, set alignment for the borders. section.PageSetup.Borders.Left.Space = 100; section.PageSetup.Borders.Right.Space = 100;Step 4 Save and PreviewAfter setting styles, save the design by using the code below. document.SaveToFile(“WordBorders.docx”, FileFormat.Docx); System.Diagnostics.Process.Start(“WordBorders.docx”);Effective Screenshot:

Insert-Word-Border

By using Spire.Doc for .NET, developers/programmers can esily insert borders in Word documents. Besides, Spire.Doc for .NET enables user to perform a wide range of Word document processing tasks directly, such as generate, read, write and modify Word document for .NET. It supports C#, VB.NET, ASP.NET, ASP.NET and MVC.Click to learn more...

Background of HTML to Image ConversionMost of web pages are created from HTML files. When we read web page information through internet we can freely enjoy different content. But when we go out and without internet, HTML files become not as convenient as we want. However, most of portable multimedia devices such as iPad, iTouch, PSP, Zune, Cell Phone and many MP4 players enable users to read image content. So, we can convert HTML to image so that when we go out we can continue reading the HTML content.How to Use C# Convert HTML to ImageThere are some file format converter can convert files from HTML to Image. However, this post will show you convert HTML with C#/VB.NET. And with Spire.Doc, a professional .NET Word component, we can do this with a few simple steps.Download Spire.Doc Here (or Spire.Office)

Create a C#/VB.NET project in visual studio add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under “C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Drawing.Imaging; using Spire.Doc; using Spire.Doc.Documents; namespace HTML2Image { class Program { static void Main(string[] args) { } } }

Step 2 Load HTML File We need load the HTML which we want to convert to image. The code below can help us do it effortlessly.

Step 3 Convert HTML to Image with C#/VB.NETSpire.Doc presents the easiest way to convert HTML to image. The following code can help users easily save HTML files to image format. Spire.Doc enables users to convert HTML to BMP, JPEG, PNG, GIF, Tiff and other popular image format.

Press F5 to start the project and we can find the image in the project folder, bin ->debug.

More about Spire.DocSpire.Doc for .NET is an MS Word component which enables user to perform a wide range of Word document processing tasks directly, such as generate, read, write and modify Word document for .NET and Silverlight. It supports C#, VB.NET, ASP.NET, ASP.NET MVC and Silverlight. Click to learn more…Recommend Component:Spire.Office for .NET is a compilation of every .NET component offered by e-iceblue. It includes Spire.Doc, Spire.PDFViewer, Spire.XLS, Spire.PDF and Spire.DataExport. Spire.Office contains the most up-to-date versions of the components above. Using Spire.Office for .NET developers can create a wide range of applications.

Add a header/footer in Word document can make the document easier to navigate and more professional appearance. The information of header/footer varies from one document to another. Despite what some users think, the information can be document title, chapter titles, page number, number of pages, date of creation, creator, date last saved, filename, or pathname. If you do a great job on Word header/footer, no matter you add a simple page number or go fancy by adding custom fields, you can give your readers relevant information about the document through header/footer.

These instructions below are created for C# developers. In this article, we will introduce how to use C# to add a header/footer in Word document. Spire.Doc, a professional .NET Word component, can help us do this job perfectly. With the help of Spire.Doc, we will do the 4 jobs below.

Add a Header/Footer in Word with Text

Add Page Number into Word Footer

Add a Header/Footer in Word with Image

Set Borders for Word Header/Footer

Download Spire.Doc and install on system. Follow the steps below to add a header/footer in Word document.

Add a Header/Footer in Word with Text Content

Step 1 Create Project

Create a C# project in visual studio add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.

Step 2 Load Word Document

Spire.Doc allows users to create Word document and edit at will. We can also use document.LoadfromFile method to load exist Word document.

//Create word document Document document = new Document();

Step 3 Add Header/Footer in Word Document

If we create a new Word document via Spire.Doc, we can write in some content into the document. Then, we can design header/footer content at will. Spire.Doc allows users to set position, text style, etc.

private void InsertHeaderFooter(Document document) { Section section = document.AddSection(); Paragraph paragraph = section.AddParagraph(); paragraph.AppendText("The sample demonstrates how to insert a header and footer into a document."); paragraph.ApplyStyle(BuiltinStyle.Heading2); paragraph = section.AddParagraph(); paragraph.AppendText("Microsoft Word is a word processor designed by Microsoft. It was first released in 1983 under the name Multi-Tool Word for Xenix systems. Subsequent versions were later written for several other platforms including IBM PCs running DOS (1983), the Apple Macintosh (1984), the AT&T Unix PC (1985), Atari ST (1986), SCO UNIX, OS/2, and Microsoft Windows (1989).");

After you embedded an image into a Word document, you will find that image becomes part of that document. It's not easy to extract image from Word document to re-use. Microsoft office does not provide any easy to use option to perform such action. Even you do your best and get the image out you may cry because it has lost all sorts of quality. However, extracting image from Word for re-use is not insurmountable. If you happen to have problems on extracting images from Word document, follow this post to extract the image as its full resolution.

This solution requires some basic programming skills. With the help of Spire.Doc, a powerful and all-in-one .NET component, we can do this job effortlessly. Download Spire.Doc and install on system. Follow the simple guide below to extract image from Word document now.

Step 1 Create Project Create a C# project in visual studio add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using Spire.Doc; using Spire.Doc.Documents; using Spire.Doc.Interface; using Spire.Doc.Collections; using Spire.Doc.Fields;

namespace extractimage

{ class Program { static void Main(string[] args) { } } }

Step 2 Open Word Document Put the Word document into the project folder. Use the code below to load and open in the project.

If you want to protect your sensitive data in Word document from others, you can just encrypt Word document by adding password. Adding security to Word document by making document password-protected is the most usual method to protect Word document file. No one will be able to open your file without the password you set. The function of encrypting Word document is fully supported by Microsoft Word. But here in this post you will find another solution to encrypt Word document - Use C# to encrypt Word document.

How to Encrypt Word Document via C#

By using Spire.Doc, we can use C# to encrypt Word document with a few minutes. Spire.Doc is a professional .NET Word document which enables user to perform a wide range of Word document processing tasks directly, such as generate, read, write and modify Word document for .NET and Silverlight. Download Spire.Doc and make sure it correctly installed on system with Visual Studio. Follow the simple guide below to encrypt Word document.

Step 1 Create Project in Visual Studio Create a C# windows form project in visual studio. Drag a button on and add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.

using System; using System.Data; using System.Drawing; using System.Windows.Forms; using Spire.Doc; using Spire.Doc.Documents;

Microsoft Word provides so many great features which can be very useful when we handle tons of documents. For example, sometimes in a long content Word document we may want to insert page break or section break before the application does it automatically. Insert page break will make a new page but because in the same section it keeps the same general formatting as the page above it. Here in this post you will know a solution of how to use C# to insert Word page break.

Step 1 Create ProjectCreate a C# windows form project in visual studio. Add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.

Microsoft Word is unarguably the best word editor around, apart from providing basic editing tools and charting styles, it also provides an option to customize document in any way you want. For example, if you always work with word documents, there comes a time that you have to merge multiple documents into one. Microsoft Word supports merging multiple Word documents into one. That function is very convenient for normal users. Here in this post you will find how to use C# to merge Word documents into one.

How to Use C# to Merge Word Documents

By using C# to merge Word documents, we don’t even need Microsoft Word installed on system. And with the help of Spire.Doc, we can do this job effortlessly.

Make sure Spire.Doc and Visual Studio are correctly installed on system. Follow the instructions below to merge word documents.

Step 1 Create ProjectCreate a C# windows form project in visual studio. Add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.Note: We still need add openFileDialog control into the project.

To any Microsoft Word document, watermark is a valuable asset. Watermark is mainly used to mark the document as private, confidential and inform about the usage & credibility of the document. Watermark can be a recognizable background image or pattern to catch the reader’s eye and to convey a readily recognizable message that portrays the status of the document.

Whatever text or image, watermark appears on printed page can mark document for specific use. The text or image you use can be an emblem of some brand, logo of a company, monogram of a product, etc. Using watermark feature in Word document would is helpful to inform audience of your document about the constraints over the usage you have applied.

How to Use C# Add Watermark in Word Document

Microsoft Word supports both text and image watermark. Through Spire.Doc, we can use C# add watermark in Word document without Microsoft Word installed on system. Download Spire.Doc and make sure Spire.Doc and Visual Studio are correctly installed on system. Follow the simple guide below to add watermark in Word.

Step 1 Create Project Create a C# windows form project in visual studio. Add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.

using System; using System.Text; using System.Windows.Forms; using Spire.Doc; using Spire.Doc.Documents;

Spire.Doc is an MS Word component which enables user to perform a wide range of Word document processing tasks directly, such as generate, read, write and modify Word document for .NET and Silverlight. Click to learn more…

Even though most of people share more documents electronically than we print, MS Word document is still the hottest tool for designing content around paper documents. MS Word documents can still work great for sharing with others and distributing online, and it often can be better to save your files in an eReader friendly format. PDF is another choice for sharing but on some eReader devices like Nook, Kindle and Sony Reader it doesn't look nice. And, it takes up valuable space on Netbook or iPad.

As a new standard for eBooks, EPUB (stands for "electronic publication") is the accepted standard format for digital book publishing. EPUB is designed for reflowable content in which the text display can be optimized for the particular display devices. Because of its special features, it superseded the Open eBook standard. And through Spire.Doc, developers can easily make ePub from Word document.

Spire.Doc is a .NET Word component which enables developers use C#/VB.NET convert Word Doc to ePub with a few clicks. Download Spire.Doc and make sure Spire.Doc and Visual Studio are correctly installed on system. Follow the simple instruction below to convert Word Doc to ePub.

Step 1 Create Project Create a C# or VB.NET project in Visual Studio and add Spire.Do.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin”. Select assembly Spire.Doc.dll and click OK to add it to the project.

Step 3 Convert Word to ePub To convert Word to ePub, we can easily use the following code. Besides converting Word Doc to ePub, we can also use Spire.Doc to convert Word Doc to PDF, XML, HTML, RTF, Dot, Text, etc.

doc.SaveToFile(@"..\..\result.epub",FileFormat.EPub);

After finish the code above, press F5 to start the project. Then, the ePub document will be generated under the project bin->debug folder.

Effective Screenshot:

More about Spire.Doc

Spire.Doc is an MS Word component which enables user to perform a wide range of Word document processing tasks directly, such as generate, read, write and modify Word document for .NET and Silverlight. Click to learn more…