

C# code which executes Mail Merge between Simpson persons and "envelope-template. In the opened window, follow to the "Field names:" and select "MergeField".īy the same steps, please add another Field with name "FamilyName".Select and click by "Field." menu item.Our main goal is add two Fields "Name" and "FamilyName". Next, you may add some images and text, anything what you want to see to gongratulate the Simpson's family. To start, let's open MS Word and create new empty document with name "envelope-template.docx". Create an envelope template in MS Word: envelope-template.docx See result: "simpson-family.docx: which contains 5 (five) named envelopes.ġ.Type C# code which executes Mail Merge between Simpson persons and "envelope-template.docx".Create an envelope template (envelope-template.docx) in MS Word with Fields "Name" and "FamilyName".As result, we'll get 5 (five) same congratulatory envelopes in the single document. To illustrate how works Mail Merge function let's create C# application which generates envelopes "Happy New Year" for Simpson family. Before printing your envelope and letter, be sure to check that the envelope you want to print on is loaded in your printer. For example, it's will be very helpful to generate hundreds of identical documents but with different data. Dear Template Gallery Customer: The envelope attached to this letterhead is formatted for standard Size 10 (4 1/8 x 9 ½) envelopes.

Net which allows to easy generate documents (reports, letters, envelopes) using templates. "Mail Merge: generate a simple envelope using C# and Document. You can go ahead and select “Yes,” as this information is unlikely to change often. Once selected, you’ll receive a message asking you if you’d like to use the return address you entered as the default return address. The only thing left to do is to click the “Add To Document” button.

You’ll now be back at the Envelopes and Labels window. Once you’re finished customizing your envelope size and font style, click “OK.”

You’ll be greeted by a new window that presents your standard font options. To customize the font for the delivery or return address, click the “Font” button under the respective item. Click the “Envelope Size” dropdown to open up a large list of different envelope sizes and pick the one that best suits your needs. Now we have the options of changing the envelope size and font style.
