I add a common used assembly to the AssemblyReferences list each time a report will be loaded by our application.
For easy coding, I want to add a global using directive to the report. Can this be done by code?
I found a element in the mrt file. Adding the using directive to that code will help but I want to do that from code and I think this is not a good solution because the code is generated.
Code: Select all
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify#endregion StiReport Designer generated code - do not modify
}
}
Kind Regards
Andreas