Hi,
does someone figure out, how is intended to "sdsx" - shared data source should be working in single project, for designing and configuring reports?
the problem:
- designer is OK(left window at picture) and showing data = working, BUT "shared datasources \ *.sdsx" files are displayed at WRONG tree - > at number 2. It should be at 1.
- viewer fails, complaining, that sdsx cannot be found. But is lookig at wrong folder number: 4. It should be lookig to 1. which is also 5.
structure is default from documentation:
Reports located at: ...\Reports\ *.trdp
Sources located at: ...\Reports\Shared Data Sources\ *.sdsx
- How to tel the VIEWER(right window at picture), to look at \Reports\Shared Data Sources\ instead only at \Reports\ for *.sdsx files?
confih at picture, with PATHS:#region REPORTING
services.TryAddSingleton<IReportServiceConfiguration>(sp => new ReportServiceConfiguration
{
ReportingEngineConfiguration = sp.GetService<IConfiguration>(),
HostAppId = "BlazorWebReportDesignerDemo",
Storage = new FileStorage(),
ReportSourceResolver = new UriReportSourceResolver(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports")),
//ReportSourceResolver = new UriReportSourceResolver(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports", "Shared Data Sources")),
});
services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration
{
DefinitionStorage = new FileDefinitionStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports")),
SettingsStorage = new FileSettingsStorage(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Telerik Reporting")),
ResourceStorage = new ResourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Resources")),
SharedDataSourceStorage = new FileSharedDataSourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports", "Shared Data Sources")),
//SharedDataSourceStorage = new FileSharedDataSourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports"), new string[] { "Shared Data Sources" })
});
#endregion
Thanks for the tips, or how its supposed to work - with not all files in one directory.