visual foxpro - word image watermark automation -


The word teamwork 2010, I need to keep the image watermark on all pages I went to record macros and accurate

  ActiveDocument.Sections (1) .Range.Select ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader want to know Selection.HeaderFooter.Shapes.AddPicture (filename: = "Image.jpg", LinkToFile: = False, SaveWithDocument: = True). Select the selection. ShapeRange.Name = "WordPictureWatermark11907540" selection. ShapeRange.PictureFormat.Brightness = 0.85 Selection ShapeRange.PictureFormat.Contrast = 0.15 selection. ShapeRange.LockAspectRatio = True selection. ShapeRange.Height = CentimetersToPoints (20.32) Selection. ShapeRange.Width = CentimetersToPoints (27.09) Selection ShapeRange.WrapFormat.AllowOverlap = True Selection.ShapeRange.WrapFormat.Side = wdWrapNone Selection ShapeRange.WrapFormat.Type = 3 Selection ShapeRange.RelativeHorizontalPosition = wdRelativeVerticalPositionMargin Selection.ShapeRange.RelativeVerticalPosition = wdRelativeVerticalPositionMargin Selection.ShapeRange.Left = wdShapeCenter Selection.ShapeRange.Top = wdShapeCenter Active Window.ActivePane.View.SeekView = wdSeekMainDocument  

although I agree with the comments of the Tamar to a degree, which I found very useful and Microsoft macros recorders How it works through

Sometimes it seems that what they do behind the curtain, it's upset. Get the Word, a sample that you want to do it how it is, then, to start a new Word document, turn on the macro recorder and take steps to start recording and get your watermark in place. Then stop the recorder You can review the recorded macro again and it will be in Visual Basic, but it will provide a bunch of things that can help with object references, properties. Hope this helps and also works with other M $ products (Word, Excel, Outlook, etc.)

Edit ---

Not within the normal ribbon To gain access to other features that otherwise would require double-click, right-click etc., you can customize the ribbon while in Word (or Excel), right-click an open area within the ribbon and select " Customize the Ribbon "Click this left-side selection list Switch to bring up a dialog of the most popular commands by default. Like the right side of common ribbons are the main tabs: Home, Insert, Page Layout, etc. so you can add a new tab to your test, commands such as headers run with ribbon tab Need to add, start adding, tables, etc. On the left side there is a combo box for "Choose from commands" (Default demo). Change it to "All Orders" and you will get much more than expected ... Then, for the ribbon, add the necessary people to your custom tab and go back to your document. Now, start your macro recorder and you will have all the commands that you will not have through double-click, right-click, etc.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -