This topic discusses about creating and loading a Section Report (xml or code based) in designer using code. We recommend you to create a new report directly from the standalone designer or you using the built-in project templates from Visual Studio.
Use NewReport() method in the Designer class to initialize the designer with a new report layout, with specified type. Make sure to add MESCIUS.ActiveReports.Design.Win package to your project.
C#. Add using statements on the top of Form.cs |
Copy Code
|
---|---|
using GrapeCity.ActiveReports.Design; using System.Windows.Forms; |
C# code. Paste INSIDE the Form Load event. |
Copy Code
|
---|---|
var _designer = new Designer() { Dock = DockStyle.Fill }; _designer.NewReport(DesignerReportType.Section); Controls.Add(_designer); |