Print

The print is called by the method Print(). A project file for the data structure of the selected data source must first be created in the Designer. It is easiest to bind the component to the same data source at print and design time. So the preview in the Designer displays the correct data and the user can easily visualize the result at runtime. A full call of the print would be:

ListLabel LL = new ListLabel();
LL.DataSource = CreateDataSet();
LL.Print();
LL.Dispose();

By default, a file selection dialog is displayed at first, followed by a print options dialog. The section Important Properties of the Component describes how these can be avoided or be prefilled if desired.