Пример #1
0
        private static void AddCustomComponent()
        {
            StiConfig.Load();

            StiOptions.Engine.ReferencedAssemblies
                = new string[] {
                "System.Dll",
                "System.Drawing.Dll",
                "System.Windows.Forms.Dll",
                "System.Data.Dll",
                "System.Xml.Dll",
                "Stimulsoft.Controls.Dll",
                "Stimulsoft.Base.Dll",
                "Stimulsoft.Report.Dll",

                #region Add reference to your assembly
                "CustomComponent.exe"
                #endregion
                };

            StiConfig.Services.Add(new MyCustomComponent());
            StiConfig.Services.Add(new MyCustomComponentWithDataSource());
            StiConfig.Services.Add(new MyCustomComponentWithExpression());
            StiConfig.Save();
        }
Пример #2
0
        /// <summary>
        /// Resets a report to null state.
        /// </summary>
        public void ResetReport()
        {
            StiConfig.Load();
            Stimulsoft.Base.Services.StiService aa = Stimulsoft.Report.StiConfig.Services.GetService(typeof(Stimulsoft.Report.Components.StiText));

            report = new StiReport();

            Stimulsoft.Report.StiConfig.Load();
        }