Free Support Forum - aspose.com

Inserting many tables like following

Table 1: Struise Rosse Birra

Report Number

517375

Manufacturer

N/A

Distributor

Multibirra S.r.l.

Address

(distr.) via Tevere Poggibonsi, (SI), Italy

Country

Italy

Internet Address

http://www.multibirra.com/

Industry

Beverages

Category Term

Beer & Ale

Flavor/Fragrance

Ingredients

Package Type

Bottle

Package Material

Glass

Shelving

General

Package Tags

N/A

Innovation

Not Innovative

UPC Code

N/A

Description

A new Birra (Beer) has recently been made available for consumers in Italy under the Struise Rosse brand. This beer is said to feature a well balanced taste with a spiced and great maltyness. Claimed to contain 5% alcohol by volume, it comes in 33cl or 75cl bottles, priced at 2.65 EUR and 5.92 EUR respectively. The ditributor is Multibirra S.r.l.

Total SKUs

2

Publication Date

May 29, 2008





Source: Datamonitor, Productscan Database


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I think that you should use mail merge with regions. Please see the following links for more information.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/mail-merge-with-regions-explained.html

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/mail-merge-with-regions-explained.html

Also here is simple code example (See attached documents).

//Prepare datasource

DataTable info = new DataTable("Info");

info.Columns.Add("FirstName");

info.Columns.Add("LastName");

info.Columns.Add("Company");

//Add some data

for (int i = 0; i < 10; i++)

{

info.Rows.Add(new object[] { "Alexey", "Noskov", "Aspose" });

}

//Open template document

Document doc = new Document(@"Test240\in.doc");

//Execute mail merge

doc.MailMerge.ExecuteWithRegions(info);

//Save document

doc.Save(@"Test240\out.doc");

I hope this could help you.

Best regards.

hi Alexey,

in my structure which i sent yester day i have one image and 3 hyperlinks. when i am using mailmerge option which you sent yester day image is not displaying but the image url is displaying. what should i do to display images instead of url. and hyper links instead just linkā€¦

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You should use special merfield name for inserting image (Image:myImage). See the following link for more information.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/the-mergeimagefield-event.html

Also see the following code example and attached documents.

string[] names = { "myImg" };

string[] values = { "http://philip9876.files.wordpress.com/2007/10/nuclear-explosion.jpg" };

//Open template

Document doc = new Document(@"Test244\in.doc");

//Execute mail merge

doc.MailMerge.Execute(names, values);

//Save document

doc.Save(@"Test244\out.doc");

Hope this helps.

Best regards.