我可以使用C#.net创建水印吗

编程入门 行业动态 更新时间:2024-10-20 16:36:35
本文介绍了我可以使用C#创建水印吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以使用C#为每个页面创建水印吗?现在我只在一页上得到它,但是我需要在每一页上得到这个水印. 有身体可以帮忙吗? 我将展示仅适用于一页的代码:

Can I create a water mark using C# for every page. Right now I am getting it only for one page, but I need to get this watermark on every page. Can any body help? I''ll show my code which works for only one page:

Word.Shape logoWatermark = null; oRng = oDoc.Bookmarks.get_Item(ref oEndOfDoc).Range; Word.Application headerApp = oDoc.Sections[1].Headers[Word.WdHeaderFooterIndex.wdHeaderFooterEvenPages].Application; logoWatermark = headerApp.ActiveDocument.Shapes.AddTextEffect(Microsoft.Office.Core.MsoPresetTextEffect.msoTextEffect1, textBox4.Text, "Arial", (float)60, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse, 0, l, ref oMissing); logoWatermark.Select(ref oMissing); logoWatermark.Fill.Visible = Microsoft.Office.Core.MsoTriState.msoTrue; logoWatermark.Line.Visible = Microsoft.Office.Core.MsoTriState.msoFalse; logoWatermark.Fill.Solid(); logoWatermark.Fill.ForeColor.RGB = (Int32)Word.WdColor.wdColorGray05; logoWatermark.RelativeHorizontalPosition = Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionMargin; logoWatermark.RelativeVerticalPosition = Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionMargin; logoWatermark.Left = (float)Word.WdShapePosition.wdShapeCenter; logoWatermark.Top = (float)Word.WdShapePosition.wdShapeCenter; logoWatermark.Height = oWord.InchesToPoints(1f); logoWatermark.Width = oWord.InchesToPoints(6f); oWord.ActiveWindow.ActivePane.View.SeekView = Word.WdSeekView.wdSeekMainDocument;

在这里,我想要有关文本文档中水印的信息,我已经在图像中的水印中看到了,但是它包含很多差异,我们将在文本文档中使用 plesae给我有关textdoc

here i want the information about the watermark in the text docment, i had seen that in the watermark in the images but it contains lot of difference , which we are going to use in the text doc plesae give me the information about the textdoc

推荐答案

的信息,这些CodeProject文章将对您有帮助吗? 在C#中构建简单的水印实用程序 [ ^ ], 水印创建者 [ ^ ]? 另请参见: stackoverflow/questions/1224653/place- watermark-image-on-other-images-c-asp-net [ ^ ], codeglobe.blogspot/2009/01/watermarking-image-in- cnet.html [ ^ ], stackoverflow/questions/397537/adding-an-invisible- image-watermark-in-c [ ^ ].
—SA
Will these CodeProject articles help you: Build a Simple Watermarking Utility in C#[^], Watermark Creator[^]? See also: stackoverflow/questions/1224653/place-watermark-image-on-other-images-c-asp-net[^], codeglobe.blogspot/2009/01/watermarking-image-in-cnet.html[^], stackoverflow/questions/397537/adding-an-invisible-image-watermark-in-c[^].
—SA

更多推荐

我可以使用C#.net创建水印吗

本文发布于:2023-11-05 08:03:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560307.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:水印   可以使用   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!