ActiveReports 6 Online Help Send comments on this topic.
Medium Trust Support
See Also
ActiveReports 6 > ActiveReports User Guide > Getting Started > ActiveReports and the Web > Medium Trust Support

Glossary Item Box

ActiveReports 6 was designed for use in a Full trust environment where all its features are available without restrictions. You can use ActiveReports 6 under Medium trust, but with limitations on some of the features.

Caution: Assemblies placed in the Global Assembly Cache, or GAC (C:\WINDOWS\ASSEMBLY), have Full trust permissions, so the results on your deployment machine may differ from those on your development machine.
Note: If you see an evaluation banner when deploying your ActiveReports 6 project, you shoud use the Web Key Generator utility to create the Web Key and integrate the license information into your project.

Feature Limitations

  1. Exporting
    • Rtf, Text, Tiff and Excel filters are not supported in Medium trust.
    • When using the Pdf export filter, digital signatures are not supported.
    • The Pdf export filter cannot access System fonts, so you must create a Custom Font Factory (Pro Edition) to embed any necessary fonts for non-ASCII characters.
      Note: If justified text and some character sets are not exported correctly, ensure that the Custom Font Factory (Pro Edition) is set up correctly.

  2. The End User Designer and Windows Form Viewer controls require Full trust.
  3. The Picture control does not support metafiles, which require Full trust.
  4. The ImageType property of the Chart must be set to PNG.
  5. OleObject and Custom controls require Full trust.
  6. Scripting requires Full trust, so if you need to use code in reports under Medium trust, use code-based reports rather than RPX format.

Recommended Development Environment for Medium Trust Tests

ShowTo set up a Medium trust environment

Paste the following code between the <system.web> and </system.web> tags.

XML code. Paste BETWEEN the system.web tags. Copy Code
<trust level="Medium"></trust>

ShowTo set up the PrintingPermission level

Most hosting providers disable the printing permissions in a partially trusted environment.

  1. Open the web_mediumtrust. config file (located in the \Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\ folder).
  2. Set the PrintingPermission level to NoPrinting.
XML code. Paste BETWEEN the system.web tags. Copy Code
<IPermission class="PrintingPermission"version="1"Level="NoPrinting"/>
Note: The default set of medium trust permissions is available in the web_mediumtrust.config.default file (located in the \Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\ folder).

See Also