public
{
Word.
{
wordApp = (Word.
}
{
Word.
doc.ActiveWindow.ActivePane.View.Type= Microsoft.Office.Interop.Word.
Word.
Word.
doc.Sections[1].Range.Select();
doc.ActiveWindow.ActivePane.View.SeekView = Word.
wmShape = mSelection.HeaderFooter.Shapes.AddTextEffect(Office.
wmShape.Select(
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.HeaderFooter.Shapes.AddPicture(FileName:= "C:\25.jpg", LinkToFile:=False, SaveWithDocument:=True).Select*/
if (ThisApplication is Word.Application)Application)ThisApplication;if (wordApp != null)Document doc = wordApp.ActiveDocument;WdViewType.wdPrintView;Selection mSelection = wordApp.Selection;ShapewmShape;object anchor =Missing.Value;WdSeekView.wdSeekCurrentPageHeader;MsoPresetTextEffect.msoTextEffect1, "WaterMARK", "Times New Roman", 1, Office.MsoTriState.msoFalse, Office.MsoTriState.msoFalse, 0, 0, ref anchor);refanchor);/*ActiveDocument.Sections(1).Range.SelectwmShape.Name =
wmShape.TextEffect.NormalizedHeight = Office.
wmShape.Line.Visible = Office.
wmShape.Fill.Visible = Office.
wmShape.Fill.Solid();
wmShape.Fill.ForeColor.RGB = (
wmShape.Fill.Transparency = 0.5f;
wmShape.LockAspectRatio = Office.
wmShape.Height = wordApp.InchesToPoints(0.82f);
wmShape.Width = wordApp.InchesToPoints(0.64f);
wmShape.WrapFormat.Side = Word.
wmShape.WrapFormat.Type = Word.
wmShape.RelativeHorizontalPosition = Word.
wmShape.RelativeVerticalPosition = Word.
wmShape.Left = (
wmShape.Top = (
doc.ActiveWindow.View.SeekView = Word.
}
No comments:
Post a Comment