Binding List & Label to a Data Source

The data binding is performed with the DataSource property. You can either program in the assignment of these or use the Properties window in your IDE. If you have already created a DataSource in your form, you can select it from the Properties window. The necessary link is created automatically.

You can now implement the program code for starting the design and print. To do this, you can, for example, include the Print or Design method call in the Click event of a new button, without any additional parameters. The data from the assigned source can be made available automatically.

// Show Designer

DBL29_1.AutoDesign('Invoice');

 

// Execute print

DBL29_1.AutoPrint('Invoice','');

If you want to modify the standard flow of data-bound printing, there are several properties you can use. These begin with "Auto..." and are found in the data section of the Properties window.

 

Property

Description

AutoProjectFile

File name of the print project being used

AutoDestination

Print format, for example printer, preview, PDF, HTML etc.

AutoProjectType

Type of print project (list, index cards, label)

AutoFileAlsoNew

Creating a new project when opening Designer enabled

AutoShowPrintOptions

Show print options when starting print

AutoShowSelectFile

Show the file selection dialog for printing and Designer

AutoBoxType

Type of progress box