I am trying to apply the Report component of Devexpress to a Chinese resource file, which works fine in the standard Blazor Server application, but it does not work in the Abp framework.
The method for applying Chinese resource files is as follows, which is a recommended method on Microsoft's official website, and the two demos use the same method:
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:
I created a module project, defined an interface in the“ Application. Contracts” project, implemented this interface in the” Application” and ”Controller” projects, and used the command ”abp generate proxy - t csharp - url' in the HttpApi. Client project http://localhost:44313 -M WorkCalendar -- without contracts "generated the proxy code, and then I referenced this proxy in ”Blazor. Server. Host ”and started the ”Blazor. Server. Host” and ”HttpApi. Host” projects. At this time, the ”CurrentUser” information obtained from the services in the Application project is null, and the services inherit IApplicationService and ITransientDependency interfaces, How can I obtain information about Blazor login users from the services in the Application project?
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:
I've created a component for reading Excel files that works fine in a blank Blazor project, but when I add it to a Blazor project based on ABP Framework, I get an error message saying 'Invocation provides 4 argument(s) but target expects 3.' Could you please help me understand why this happens and how to fix it? Thank you!"
The following is my code.
@page "/upload-excel"
@using System.IO
<Field>
<FileEdit Changed="@OnChanged" />
</Field>
@code {
async Task OnChanged(FileChangedEventArgs e)
{
try
{
var file = e.Files.FirstOrDefault();
if (file == null)
{
return;
}
using (MemoryStream result = new MemoryStream())
{
await file.OpenReadStream(long.MaxValue).CopyToAsync(result);
}
} catch (Exception exc)
{
Console.WriteLine(exc.Message);
} finally
{
this.StateHasChanged();
}
}
}