ReportSourceResolver

1 Answer 33 Views
Rest Service
Frank
Top achievements
Rank 1
Frank asked on 11 Sep 2024, 07:58 PM

Is there a possibility to use Azure Blob Storage as the ReportSourceResolver in the REST API instead of file or database storage?

 


        builder.Services.AddSingleton<IReportServiceConfiguration>(sp =>
            new ReportServiceConfiguration
            {
                // The default ReportingEngineConfiguration will be initialized from appsettings.json or appsettings.{EnvironmentName}.json:
                ReportingEngineConfiguration = sp.GetService<IConfiguration>(),
                // In case the ReportingEngineConfiguration needs to be loaded from a specific configuration file, use the approach below:
                //ReportingEngineConfiguration = ResolveSpecificReportingConfiguration(sp.GetService<IWebHostEnvironment>()),
                HostAppId = "ReportingNet6",
                Storage = new FileStorage(),
                ReportSourceResolver = new UriReportSourceResolver(System.IO.Path.Combine(sp
                        .GetService<IWebHostEnvironment>()
                        .ContentRootPath,
                    "Reports"))
            });

1 Answer, 1 is accepted

Sort by
0
Ivet
Telerik team
answered on 13 Sep 2024, 02:26 PM

Hi Frank,

Thank you for the provided screenshot.

Аs I understand that you want to use Azure Blob Storage as the ReportSourceResolver in the REST API.

Our Resolver doesn't support Azure Blob Storage. What you can do to use Azure Blob Storage is to make a custom resolver i.e. you must implement this interface - Interface IReportSourceResolver. For more information on how you can do it, look at the following article - Implementing Custom ReportSource and ReportDocument Resolvers To Fully Control the Report in Run Time.

For the Storage, I would suggest trying to implement the 'IStorage2 interface' for which more information can be found in this article -Interface IStorage2.

I hope the above information will be useful. Let me know if you have other questions.

Regards,
Ivet
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Rest Service
Asked by
Frank
Top achievements
Rank 1
Answers by
Ivet
Telerik team
Share this question
or