RDLImportPlugin.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using FastReport.Import.RDL;
  2. using System.IO;
  3. namespace FastReport.Design.ImportPlugins.RDL
  4. {
  5. /// <summary>
  6. /// Represents the RDL import plugin.
  7. /// </summary>
  8. public partial class RDLImportPlugin : ImportPlugin
  9. {
  10. #region Constructors
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="RDLImportPlugin"/> class.
  13. /// </summary>
  14. public RDLImportPlugin() : base()
  15. {
  16. Import = new RDLImport();
  17. }
  18. /// <summary>
  19. /// Initializes a new instance of the <see cref="RDLImportPlugin"/> class with a specified designer.
  20. /// </summary>
  21. /// <param name="designer">The report designer.</param>
  22. public RDLImportPlugin(Designer designer) : base(designer)
  23. {
  24. Import = new RDLImport();
  25. }
  26. #endregion // Constructors
  27. #region Protected Methods
  28. /// <inheritdoc/>
  29. protected override string GetFilter()
  30. {
  31. return new Utils.MyRes("FileFilters").Get("RdlFiles");
  32. }
  33. #endregion // Protected Methods
  34. #region Public Methods
  35. /// <inheritdoc/>
  36. public override void LoadReport(Report report, string filename)
  37. {
  38. Import.LoadReport(report, filename);
  39. }
  40. public override void LoadReport(Report report, Stream content)
  41. {
  42. Import.LoadReport(report, content);
  43. }
  44. #endregion // Public Methods
  45. }
  46. }