Parameter für Inlineshapes.addpictures(..)
Unter der folgenden Seite werden die Parameter für das Einfügen eines Bildes oder Fotos per vba oder Macro genauer erläutert
vba makro shapes inlineshapes Bilder fotos word einfügen
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.inlineshapes.addpicture(v=office.14).aspx
|
|
InlineShapes.AddPicture Method
|
Parameters
FileName
Type:System.String
RequiredString. The path and file name of the picture.
LinkToFile
Type:System.Object%
OptionalObject.Trueto link the picture to the file from which it was created.Falseto make the picture an independent copy of the file. The default value isFalse.
SaveWithDocument
Type:System.Object%
OptionalObject.Trueto save the linked picture with the document. The default value isFalse.
Range
Type:System.Object%
OptionalObject. The location where the picture will be placed in the text. If the range isnt collapsed, the picture replaces the range; otherwise, the picture is inserted. If this argument is omitted, the picture is placed automatically.
|
Der Unterschied von Shape-Objects und Inlineshapes, ist der, dass Shape-Objekte frei schweben und einen Ankerpunkt benötigen.
Inlineshapes hingegen sind wie Buchstaben in einem Text zu sehen, die in der dargestellten Zeile plaziert sind
Hier der Hinweis
Shapeobjects are anchored to a range of text but are free-floating and can be positioned anywhere on the page.InlineShapeobjects are treated like characters and are positioned as characters within a line of text. You can use theConvertToInlineShapemethod and theConvertToShapemethod to convert shapes from one type to the other. You can convert only pictures, OLE objects, and ActiveX controls to inline shapes.
|