Hi,
I’m a new developer using List&Label and I must find a solution for my problem. The design of the application I’m working on is already done and I don’t want to change a lot of things to reach my goal.
I want to know if there is an easy way to print a “list of DataSet”. In the project, we’re using DataSets to send fields to List&Label templates. To print the content of the DataSet, we do the following in C# assuming we are in preview mode:
[code][…]
if (printMode == LlPrintMode.Preview) {
ListLabel listLabel = new ListLabel();
listLabel.Core.LlJobOpen(0);
listLabel.DataSource = dataSet;
listLabel.DataMember = dataSet.Tables[“ReportHeader”].ToString();
listLabel.AutoMasterMode = LlAutoMasterMode.AsVariables;
listLabel.AutoShowSelectFile = false;
[…]
listLabel.LicensingInfo = licenseKey;
listLabel.AutoDesignerFile = fileName;
[…]
listLabel.Print(LlProject.List);
listLabel.Core.LlPrintEnd();
listLabel.Core.LlJobClose();
}
[…][/code]
All DataSets contain a Table ‘ReportHeader’ containing headers information (as current date,…) and one or more children tables containing other data rows.
It’s very straightforward, but for a newbie like me, it is very difficult to adapt such code to preview a list of reports whose data are encapsulated in a list of DataSet.
Have you a main proposition (except the fact that I must read carefully the documentation and study the programmable samples, what I’ll do when I’d have more time…) ?
Thanks