[]
ActiveReports components can be used as plugins for third-party applications.
A sample of creating a new application domain, where you can load ActiveReports is shown below:
string appDir = Path.GetDirectoryName(GetType().Assembly.CodeBase.Substring(8));
//grant permission to the untrusted application
var pset = new PermissionSet(PermissionState.Unrestricted);
var sandBoxSetup = new AppDomainSetup
{
//set the ApplicationBase to a folder
ApplicationBase = appDir,
ConfigurationFile = appDir + "....dll.config"
};
//create sandboxed application domain
AppDomain domain = AppDomain.CreateDomain("Sandboxed Domain", null, sandBoxSetup, pset);
type=note
Note: Partial/Medium Trust is obsolete. ActiveReports does not support it anymore.