How to watermark a DOCX or RTF document in a .NET application

2021-12-06

Watermark exports to .DOCX and .RTF files have been added in FastReport .NET. limitation - the sign cannot be positioned above the text.

A watermark is a text or image (mostly semi-transparent) that is superimposed so that it does not interfere with viewing the document. It is used to protect the content of documents from commercial use by non-owners or fraud.

Example of a document with a watermark:

Sample document with a watermark

Add watermarking from a code:

//Create instance of class Report
Report report = new Report(); 
//Create report page
ReportPage pageBase = new ReportPage();
//Add text watermark
pageBase.Watermark.Enabled = true;
pageBase.Watermark.Text = "Watermark";
//Add created page to report page collection
report.Pages.Add(pageBase);

The result of adding a watermark in the preview:

Watermark in a preview

Result of exporting a watermarked report to RTF:

Watermark in RTF

The result of exporting a watermarked report to Word 2007:

Watermark in DOCX

These improvements will help protect your reports from unwanted use.

.NET Export FastReport RTF Word .NET Export FastReport RTF Word
March 11, 2025

How to Use FastReport .NET Avalonia on Fedora Workstation with Wayland Protocol

In this article, we will discuss how to run FastReport .NET Avalonia on the "Fedora Workstation 39" operating system with Wayland protocol.
March 07, 2025

How to Create a QR Code with an Image in FastReport .NET

The article figured out how to insert a picture into a QR Code from the report designer FastReport.NET in just a couple of clicks.
February 20, 2025

Using Dot Matrix Printers for Printing Receipts

This article will explore how to integrate a dot matrix printer into the process of creating and outputting reports using FastReport .NET.
Fast Reports
  • 800-985-8986 (English, US)
  • +31 97 01025-8466 (English, EU)
  • +49 30 56837-3928 (German, DE)
  • +55 19 98147-8148 (Portuguese, BR)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2025 Fast Reports Inc.

Do you have any questions?

Ask us your questions in the chat.