Developers / Plugins Development
In This Topic
Plugins Development
In This Topic

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:

Copy Code
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);

 

Note: Partial/Medium Trust is obsolete. ActiveReports does not support it anymore.
See Also