Print Card With Simple Placeholders

Printing a full-page project which simply contains placeholders set by the application is achieved easily by binding it to a suitable object:

public class DataSource

{

    public string Text1 { get; set; }

    public double Number1 { get; set; }

    ...

}

 

// Prepare data source

object dataSource = new DataSource { Text1 = "Test", Number1 = 1.234 };

ListLabel LL = new ListLabel();

LL.DataSource = new ObjectDataProvider(dataSource);

LL.AutoProjectType = LlProject.Card;

 

// Call Designer

LL.Design();

 

// Print

LL.Print();

LL.Dispose();