vbscript WatermarkOperations-AddWatermarkToRelativePosition.vb

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript WatermarkOperations-AddWatermarkToRelativePosition.vb相关的知识,希望对你有一定的参考价值。

' 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

以上是关于vbscript WatermarkOperations-AddWatermarkToRelativePosition.vb的主要内容,如果未能解决你的问题,请参考以下文章

vbscript VBSCRIPT_EMAIL

vbscript SHA-256哈希的VBScript代码

vbscript 使用VBScript发送电子邮件

vbscript VBScript:运行本地或远程策略。

vbscript VBScript将可用磁盘空间写入文件

vbscript VBScript或VBA数组函数