![]() This code first defines a string containing the bookmark name “\startofdocument.” This is a predefined bookmark that represents the start of the document. Wrap text around the picture's square. ![]() Word.Shape shape = inline_shape.ConvertToShape() Picture_file, ref missing, ref missing, ref missing) Add the picture to the Range's InlineShapes. Get a Range at the start of the document. See the example Create a Word document in C# for basic instructions on using the Word application to create a Word document in C#.Īfter creating the Word document and adding text to it as in the previous example, the program uses the following code to add and format the picture. It also shows how to use a bookmark to find the beginning of the Word document, make text flow around the picture, and align the picture on the page’s upper right. This example shows how a C# program can add a picture to a Word document.
0 Comments
Leave a Reply. |