Free Support Forum - aspose.com

Invoice demo question

I looked at your site for Invoice from a DataSet and all the fields are populated however when I looked at the demo on the trial version only the portion of the invoice that deals with the invoice items populates. Are there any examples that show the code behind populating all the fields in the invoice not just the invoice items?<?xml:namespace prefix = o ns = "urnTongue Tiedchemas-microsoft-comSurprisefficeSurpriseffice" /><oStick out tongue></oStick out tongue>

Hi,

The online demo is exactly the same as the demo included in the product installer and it populates all fields.<?xml:namespace prefix = o ns = “urnTongue Tiedchemas-microsoft-comSurprisefficeSurpriseffice” /><oStick out tongue></oStick out tongue>

<oStick out tongue> </oStick out tongue>

Data from three tables is used to populate the invoice: Order, OrderDetails and OrderTotals.<oStick out tongue></oStick out tongue>

<oStick out tongue> </oStick out tongue>

In this example, one call to

doc.MailMerge.ExecuteWithRegions(dataSet);<oStick out tongue></oStick out tongue>


does it all because there are three merge regions defined in the document and three matching tables are passed in the dataset.