This example illustrates how to save a report definition to a REPX file (by using CodeDOM serialization mechanism) and XML file, and then restore the report from any of these files.
NOTE:
Deserialization of reports obtained from untrusted parties can trigger execution of malicious code that can either be directly embedded into the report definition, or contained in an external assembly referenced by the report.
To avoid this, we recommend that you use XML serialization instead of CodeDOM (in this case, reports can be safely deserialized by using the XtraReport.LoadLayoutFromXml method) and prevent any untrusted third-party libraries from becoming available on the server.