Skip to content

Commit ac31b39

Browse files
committed
Updated readme content, images and template documents.
1 parent 09e02bd commit ac31b39

File tree

40 files changed

+116
-118
lines changed

40 files changed

+116
-118
lines changed
Loading
Loading

Create-Envelopes-for-mailing/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create envelopes for mailings
1+
# Create envelopes for mailing in C#
22

33
This example illustrates how to create envelopes for mailing to a list of recipients using the [Execute(IEnumerable dataSource)](https://help.syncfusion.com/cr/cref_files/file-formats/Syncfusion.DocIO.Base~Syncfusion.DocIO.DLS.MailMerge~Execute(IEnumerable).html) API.
44

@@ -20,10 +20,10 @@ By running this application, you will get the envelopes for mailing as follows.
2020
<img src="Images/Envelopes-for-mailing-output.png" alt="Envelopes-for-mailing-output"/>
2121
</p>
2222

23-
To generate envelopes, design your Word document template with the required layout, formatting, graphics, and merge fields to personalize information using Microsoft Word as follows.
23+
To generate envelopes, design your template Word document with the required layout, formatting, graphics, and merge fields to personalize information using Microsoft Word as follows.
2424

2525
<p align="center">
2626
<img src="Images/Envelopes-for-mailing-template.png" alt="Envelopes-for-mailing-template"/>
2727
</p>
2828

29-
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mailmerge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.
29+
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mail-merge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.
Loading
Loading
+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Create and send email messages
1+
# Create and send email messages in C#
22

3-
This example shows how to create and send email messages by converting the mail merged Word document to HTML using [Syncfusion Word library](https://www.syncfusion.com/word-framework/net-core?utm_source=github&utm_medium=listing&utm_campaign=mail-merge-examples) (Essential DocIO).
3+
This example shows how to create and send email messages to the recipients from JSON data by converting the mail merged Word document to HTML using [Syncfusion Word library](https://www.syncfusion.com/word-framework/net/word-library?utm_source=github&utm_medium=listing&utm_campaign=mail-merge-examples) (Essential DocIO).
44

55
# How to run the project
66

@@ -10,7 +10,9 @@ This example shows how to create and send email messages by converting the mail
1010

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

13-
4. Run the application.
13+
4. Enter your login details and recipient mail IDs to send messages.
14+
15+
5. Run the application.
1416

1517
# Screenshots
1618

@@ -20,10 +22,10 @@ By running this application, you can create and send email messages as follows.
2022
<img src="Images/Create-and-send-email-messages-output.png" alt=" Create-and-send-email-messages-output"/>
2123
</p>
2224

23-
To create and send bulk messages, design your Word document template with the required contents and merge fields using Microsoft Word as follows.
25+
To create and send bulk email messages, design your template Word document with the required contents and merge fields using Microsoft Word as follows.
2426

2527
<p align="center">
2628
<img src="Images/Create-and-send-email-messages-template.png" alt="Create-and-send-email-messages-template.png"/>
2729
</p>
2830

29-
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mailmerge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.
31+
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mail-merge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.
Loading
Loading

Create-personalized-letter/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create personalized letters
1+
# Create personalized letters in C#
22

33
This example illustrates how to personalize letters using an array of field names with its values as data source by using the [Execute(string[] fieldNames, string[] fieldValues)](https://help.syncfusion.com/cr/cref_files/file-formats/Syncfusion.DocIO.Base~Syncfusion.DocIO.DLS.MailMerge~Execute(String[],String[]).html) API.
44

@@ -20,10 +20,10 @@ By running this application, you will get a personalized letter as follows.
2020
<img src="Images/Create-personalized-letter-output.png" alt="Create-personalized-letter-output"/>
2121
</p>
2222

23-
To personalize letters, design your Word document template with the required content and merge fields using Microsoft Word as follows.
23+
To personalize letters, design your template Word document with the required content and merge fields using Microsoft Word as follows.
2424

2525
<p align="center">
2626
<img src="Images/Create-personalized-letter-template.png" alt="Create-personalized-letter-template"/>
2727
</p>
2828

29-
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mailmerge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.
29+
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mail-merge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.

Generate-Barcode-labels/Console-App-.NET-Framework/Generate-Barcode-labels/Program.cs

+12-12
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Program
1212
static void Main(string[] args)
1313
{
1414
//Opens the template document
15-
WordDocument document = new WordDocument(Path.GetFullPath(@"../../Template.docx"));
15+
WordDocument document = new WordDocument(Path.GetFullPath(@"../../Template.docx"));
1616
//Creates mail merge events handler for image fields
1717
document.MailMerge.MergeImageField += new MergeImageFieldEventHandler(InsertBarcode);
1818
//Gets data to perform mail merge
@@ -22,7 +22,7 @@ static void Main(string[] args)
2222

2323
//Saves and closes the Word document instance
2424
document.Save(Path.GetFullPath(@"../../Sample.docx"));
25-
document.Close();
25+
document.Close();
2626
}
2727

2828
#region Helper methods
@@ -32,7 +32,7 @@ static void Main(string[] args)
3232
private static void InsertBarcode(object sender, MergeImageFieldEventArgs args)
3333
{
3434
if (args.FieldName == "Barcode")
35-
{
35+
{
3636
//Generates barcode image for field value.
3737
Image barcodeImage = GenerateBarcodeImage(args.FieldValue.ToString());
3838
//Sets barcode image for merge field
@@ -62,14 +62,14 @@ private static Image GenerateBarcodeImage(string barcodeText)
6262
/// <returns></returns>
6363
private static DataTable GetDataTable()
6464
{
65-
// List of products name.
65+
// List of products name.
6666
string[] products = { "Apple Juice", "Grape Juice", "Hot Soup", "Tender Coconut", "Vennila", "Strawberry", "Cherry", "Cone",
67-
"Butter", "Milk", "Cheese", "Salt", "Honey", "Soap", "Chocolate", "Edible Oil", "Spices", "Paneer", "Curd", "Bread", "Olive oil", "Vinegar", "Sports Drinks",
67+
"Butter", "Milk", "Cheese", "Salt", "Honey", "Soap", "Chocolate", "Edible Oil", "Spices", "Paneer", "Curd", "Bread", "Olive oil", "Vinegar", "Sports Drinks",
6868
"Vegetable Juice", "Sugar", "Flour", "Jam", "Cake", "Brownies", "Donuts", "Egg", "Tooth Brush", "Talcum powder", "Detergent Soap", "Room Spray", "Tooth paste"};
6969

7070
DataTable table = new DataTable("Product_PriceList");
7171

72-
// Add fields to the Product_PriceList table.
72+
// Add fields to the Product_PriceList table.
7373
table.Columns.Add("ProductName");
7474
table.Columns.Add("Price");
7575
table.Columns.Add("Barcode");
@@ -85,7 +85,7 @@ private static DataTable GetDataTable()
8585
{
8686
case "Apple Juice":
8787
row["Price"] = "$12.00";
88-
break;
88+
break;
8989
case "Grape Juice":
9090
case "Milk":
9191
row["Price"] = "$15.00";
@@ -102,17 +102,17 @@ private static DataTable GetDataTable()
102102
break;
103103
case "Strawberry":
104104
case "Butter":
105-
row["Price"] = "$18.00";
105+
row["Price"] = "$18.00";
106106
break;
107107
case "Cherry":
108108
case "Salt":
109-
row["Price"] = "$25.00";
109+
row["Price"] = "$25.00";
110110
break;
111111
default:
112-
row["Price"] = "$20.00";
112+
row["Price"] = "$20.00";
113113
break;
114-
}
115-
//Add barcode text
114+
}
115+
//Add barcode text
116116
row["Barcode"] = Id.ToString();
117117
table.Rows.Add(row);
118118
Id++;

Generate-Barcode-labels/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generate barcode labels
1+
# Generate barcode labels in C#
22

3-
This example shows how to generate a barcode using [Syncfusion PDF library](https://www.syncfusion.com/pdf-framework/net?utm_source=github&utm_medium=listing&utm_campaign=mail-merge-examples) and insert the generated barcode as an image into the Word document with [MergeImageField](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.Base~Syncfusion.DocIO.DLS.MailMerge~MergeImageField_EV.html) event using [Syncfusion Word library](https://www.syncfusion.com/word-framework/net?utm_source=github&utm_medium=listing&utm_campaign=mail-merge-examples) (Essential DocIO).
3+
This example shows how to generate a barcode using [Syncfusion PDF library](https://www.syncfusion.com/pdf-framework/net/pdf-library?utm_source=github&utm_medium=listing&utm_campaign=mail-merge-examples) and insert the generated barcode as an image into the Word document with [MergeImageField](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.Base~Syncfusion.DocIO.DLS.MailMerge~MergeImageField_EV.html) event using [Syncfusion Word library](https://www.syncfusion.com/word-framework/net/word-library?utm_source=github&utm_medium=listing&utm_campaign=mail-merge-examples) (Essential DocIO).
44

55
# How to run the project
66

@@ -20,13 +20,13 @@ By running this application, you will get the barcode labels as follows.
2020
<img src="Images/Generate-Barcode-labels-output.png" alt="Generate-Barcode-labels-output"/>
2121
</p>
2222

23-
To generate barcode labels, design your Word document template with the required layout, formatting, graphics, and merge fields using Microsoft Word as follows.
23+
To generate barcode labels, design your template Word document with the required layout, formatting, graphics, and merge fields using Microsoft Word as follows.
2424

25-
**Note:** In this template Word document, NEXT field is inserted as the last item in each cell to move to the next record while executing column wise mail merge. You can view the NEXT field by opening a Word document in Microsoft Word application and press ALT+F9 shortcut key to toggle field codes.
25+
**Note:** In this Word template document, [NEXT](https://support.office.com/en-us/article/field-codes-next-field-3862fad6-0297-411a-a4e7-6ff5bcf178fd?ui=en-US&rs=en-US&ad=US) field is inserted at end of each cell and this field instructs to merge the next record from the data source. You can view the NEXT field by opening this template document in Microsoft Word application and press Alt+F9 shortcut key to toggle field codes.
2626

2727
<p align="center">
2828
<img src="Images/Generate-Barcode-labels-template.png" alt="Generate-Barcode-labels-template"/>
2929
</p>
3030

3131

32-
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mailmerge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.
32+
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started), where you will find other Word document processing operations along with features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mail-merge), [merge](https://help.syncfusion.com/file-formats/docio/working-with-word-document#merging-word-documents), and split documents, [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security) Word documents, and most importantly [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf) and [image](https://help.syncfusion.com/file-formats/docio/word-to-image) conversions with code examples.

Generate-multiple-Word-documents/Console-App-.NET-Framework/Generate-multiple-Word-documents/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private static DataTable GetRecipients()
4848
//Creates new DataTable instance
4949
DataTable table = new DataTable();
5050
//Loads the database
51-
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @"../../Northwind.mdb");
51+
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @"../../CustomerDetails.mdb");
5252
//Opens the database connection
5353
conn.Open();
5454
OleDbDataAdapter adapter = new OleDbDataAdapter("Select * from Customers", conn);
Loading
Loading

0 commit comments

Comments
 (0)