You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
33 lines
1.0 KiB
using GrapeCity.ActiveReports.Aspnetcore.Viewer;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
using System.IO;
|
|
|
|
namespace Win_in.Sfs.Wms.Store
|
|
{
|
|
public class Startup
|
|
{
|
|
//物理路径
|
|
public static string AppPath = Environment.CurrentDirectory;
|
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddApplication<StoreHttpApiHostModule>();
|
|
}
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
|
|
{
|
|
app.UseReporting(settings =>
|
|
{
|
|
//settings.UseFileStore(new DirectoryInfo(Environment.CurrentDirectory + "/Reports"));
|
|
settings.UseFileStore(new DirectoryInfo(Path.Combine(AppPath, "Reports")));
|
|
settings.UseCompression = true;
|
|
});
|
|
|
|
app.InitializeApplication();
|
|
}
|
|
}
|
|
}
|
|
|