Adding a Custom Component to the Designer
Our sample projects and report templates can help you learn the basics of working with our products.You can extend the designer with your own report components that users can drop onto a report like any built-in element.
Registering custom components. Add your component services to
Registering custom components. Add your component services to
StiConfig.Services and save the configuration, so the designer shows them on its toolbox:StiConfig.Load();
StiConfig.Services.Add(new MyCustomComponent());
StiConfig.Services.Add(new MyCustomComponentWithDataSource());
StiConfig.Services.Add(new MyCustomComponentWithExpression());
StiConfig.Services.Add(new MyCustomComponent2());
StiConfig.Save();
var report = new StiReport();
report.Design();Each custom component is a set of classes describing how it is built, painted and serialized. Once registered they behave like native components — users can place, configure and print them — which makes the designer fully extensible for domain-specific elements.