Skip to content

Latest commit

 

History

History
 
 

Fit-photo-within-textbox

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Fit the photo within the text box using Mail merge in C#

This example illustrates how to fit the photo within the text box in Word document using Mail merge.

How to run the project

  1. Download this project to a location in your disk.

  2. Open the solution file using Visual Studio.

  3. Rebuild the solution to install the required NuGet packages.

  4. Run the application.

Screenshots

By running this application, you will get the output Word document as follows.

Fit-photo-within-textbox-output

To fit the photo within the text box, design your template Word document with the required content and merge fields using Microsoft Word as follows.

Fit-photo-within-textbox-template

Take a moment to peruse the documentation, where you will find other Word document processing operations along with features like mail merge, merge, and split documents, find and replace text in the Word document, protect Word documents, and most importantly PDF and image conversions with code examples.