1252 encoding fix

This commit is contained in:
ShabOl 2024-04-11 00:09:06 +04:00
parent 3e61ea61df
commit 1f791d68d7
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,13 @@
<PackageReference Include="NLog" Version="5.2.8" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.8" />
<PackageReference Include="ReportViewerCore.WinForms" Version="15.1.19" />
<PackageReference Include="System.Text.Encoding" Version="4.3.0" />
</ItemGroup>
<ItemGroup>
<None Update="ReportOrders.rdlc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

View File

@ -78,6 +78,7 @@ namespace AutoWorkshopView.Forms
{
try
{
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
_logic.SaveOrdersToPdfFile(new ReportBindingModel
{
FileName = Dialog.FileName,