Programming

Showing category "Word" (Show all posts)

VB.NET-Add Text Watermark in Word

Posted by SunnyWhite on Monday, November 7, 2011, In : Word 

Traditionally, watermark is formed when marking paper. It is not printed on the face of paper but in the middle. Therefore, it can present others from forging the paper which watermark has been added.

Gradually, watermark is applied for electronic documents. As is known, along with sharp development of internet, people often share useful material with Word or other documents online. However, some people may steal the documents. So, the original owners need to take measures to protect the...


Continue reading ...
 

C#--Set Word Font and Color

Posted by SunnyWhite on Wednesday, October 26, 2011, In : Word 

Generally speaking, we may set formatting for a Word document to make it be more readable, especially font and color. For example, if there are several sections in the document, we may set different font or color for the section title. Sometimes, in order to highlight key words, we can set it with bigger font size or bright color. With well formatting, readers can learn more clearly about the idea of each part and the layout will be more appealed after printing.

How to set Word font and ...


Continue reading ...
 

(C#) Convert Word to Tiff Image

Posted by SunnyWhite on Friday, October 14, 2011, In : Word 

Tiff is one kind of image format to save photo and art pictures. This format is flexible and adaptable. It can deal with several images and data in one file through “tag” in file header. Tag can indicate size of image and define how to arrange image data.

Actually, Tiff is the most complicated bitmap file format. One tiff image can occupy large space because it saves lots of contents. At present, it is widely applied to saving and changing images which has high picture quality.

So...


Continue reading ...
 

Use Mail Merge to Generate Files with C# in Word

Posted by SunnyWhite on Wednesday, September 28, 2011, In : Word 

Mail Merge is very useful for generating template file in bulk, such as transcript, questionnaire, invoice and so on.

How to use mail merge in MS Office? Firstly, we need to create a template, which is used to generate frame and main contents of file. Then, we need to have data source. Generally speaking, we can export data from database or create a new Excel file with essential data information. Secondly, set mail merge type and link to data source. Finally, generate mail merge files an...


Continue reading ...
 

Add Word Header and Footer with C#

Posted by SunnyWhite on Wednesday, June 1, 2011, In : Word 

If a word document has many pages, people may add header or footer to show the page number. Sometimes, the header or footer may be symbols which are the topic of the document talk about or the owner of the document.

It is simple to insert add header and footer. Open a Word document. Then click Header and footer on File menu. Type the text or use the format Word provides.

Then, I want to show something about how to add Word header and footer with C#.  

Using the code:

#region add W...


Continue reading ...
 

How to Decrypt Word Document

Posted by SunnyWhite on Friday, March 11, 2011, In : Word 
In order to make sure that the important information can't be revealed, we may encrypt a Word document by giving it a complicated password. The Word protection function is very powerful that it is difficult to get the encrypted document without password. However, sometimes, we may forget the password if it is too complex or we can't use the protected Word document for a long time.

How to Decrypt Word Document by Using Spire.Doc

In Spire.Doc, you can simply use document.LoadFromFile method to de...

Continue reading ...
 

How to Convert Word to PDF

Posted by SunnyWhite on Tuesday, February 15, 2011, In : Word 

What is PDF

PDF (Portable Document Format) is one kind of electronic document format. PDF is the ideal document format to publish electronic document and deliver digital information on internet for it has nothing to do with operation system. PDF file format can package font, format, color and image in a file. Also, it can include hyperl...


Continue reading ...
 

How to Convert Word Document to XML

Posted by SunnyWhite on Monday, January 10, 2011, In : Word 

Basic Knowledge about XML

When talking about XML, we may think of HTML. Actually, XML is similar to HTML are tag-based languages. The difference between XML and HTML is that the tags which XML uses are not predefined. If we want to create own tags within XML, we need to follow a few rules.

Firstly, only one root element is contained in XML document. The root element is often taken as document element and appears after the prolog section. Besides, all the XML elements should contain end ...


Continue reading ...
 

How to Encrypt Word Document with C#/VB.NET

Posted by SunnyWhite on Monday, January 10, 2011, In : Word 

We may set one password for a file if we don't want others to open it, especially the secrete document. Generally speaking, we are used to writing articles or papers in Microsoft Word. And we may need to encrypt Word document if it is very important for security. Also, when we operate Word by using C#/VB.NET, to encrypt Word document is ...


Continue reading ...
 
 

About Me


Recent Posts