Knowledge Hub

 

Open XML Usage - Part Four

Open XML Usage - Part Four

Adding a text watermark. Please refer to Part One of this series to see the Word document output and calling code. The TextWatermark class is standard code to add a watermark in a diagonal line. Also note that it is also possible to add an image watermark.

Open XML Usage – Part Two

Open XML Usage – Part Two

Add styles and tables. I found it much easier to create re-usable code when creating Word documents. The CreateAndAddCharacterStyle method takes a number of parameters i.e. font, font size, colour, bold setting and italics setting. Once the style is created it can then be applied to a run when creating text.

Open XML Usage – Part One

Open XML Usage – Part One

This will be the first in a short series of articles to show how we use Open XML. Open XML is a Microsoft format which can be used to programmatically create Word documents.

Navigation

Social Media