' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As Document = Document.Load(Utilities.MapSourceFilePath(XlsFilePath))
Dim font As New Font("Calibri", 12)
Dim watermark As New TextWatermark("Test watermark", font)
watermark.HorizontalAlignment = HorizontalAlignment.Right
watermark.VerticalAlignment = VerticalAlignment.Bottom
' Set absolute margins. Values are measured in document units.
watermark.Margins.Right = 10
watermark.Margins.Bottom = 5
doc.AddWatermark(watermark)
doc.Save()
End Using