123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using FastReport.Import.RDL;
- using System.IO;
- namespace FastReport.Design.ImportPlugins.RDL
- {
- /// <summary>
- /// Represents the RDL import plugin.
- /// </summary>
- public partial class RDLImportPlugin : ImportPlugin
- {
- #region Constructors
- /// <summary>
- /// Initializes a new instance of the <see cref="RDLImportPlugin"/> class.
- /// </summary>
- public RDLImportPlugin() : base()
- {
- Import = new RDLImport();
- }
- /// <summary>
- /// Initializes a new instance of the <see cref="RDLImportPlugin"/> class with a specified designer.
- /// </summary>
- /// <param name="designer">The report designer.</param>
- public RDLImportPlugin(Designer designer) : base(designer)
- {
- Import = new RDLImport();
- }
- #endregion // Constructors
- #region Protected Methods
- /// <inheritdoc/>
- protected override string GetFilter()
- {
- return new Utils.MyRes("FileFilters").Get("RdlFiles");
- }
- #endregion // Protected Methods
- #region Public Methods
- /// <inheritdoc/>
- public override void LoadReport(Report report, string filename)
- {
- Import.LoadReport(report, filename);
- }
- public override void LoadReport(Report report, Stream content)
- {
- Import.LoadReport(report, content);
- }
- #endregion // Public Methods
- }
- }
|