Выгрузка в пдф

This commit is contained in:
Владимир Данилов 2024-05-29 23:48:13 +04:00
parent 94d89e7e27
commit b0510098af
4 changed files with 10 additions and 1 deletions

View File

@ -57,7 +57,7 @@ namespace VeterinaryClinicBusinessLogics.OfficePackage
// Записываем номер визита - дата
CreateRow(new PdfRowParameters
{
Texts = new List<string> { view.Visit.Id.ToString(), " - ", view.Visit.Date.ToString() },
Texts = new List<string> { view.Visit.Id.ToString() + " - " + view.Visit.Date.ToString(), "", "" },
Style = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Left
});

View File

@ -10,6 +10,7 @@
<PackageReference Include="DocumentFormat.OpenXml" Version="3.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="PdfSharp.MigraDoc.Standard" Version="1.51.15" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
</ItemGroup>
<ItemGroup>

View File

@ -6,9 +6,13 @@ using Microsoft.OpenApi.Models;
using VeterinaryClinicBusinessLogics.OfficePackage.Implements;
using VeterinaryClinicBusinessLogics.OfficePackage;
using VeterinaryClinicBusinessLogics.MailWorker;
using System.Text;
var builder = WebApplication.CreateBuilder(args);
// Ðåãèñòðàöèÿ ïîñòàâùèêà êîäèðîâîê
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
builder.Logging.SetMinimumLevel(LogLevel.Trace);
//builder.Logging.AddLog4Net("log4net.config");

View File

@ -6,9 +6,13 @@ using VeterinaryClinicContracts.StoragesContracts;
using VeterinaryClinicDatabaseImplement.Implements;
using VeterinaryClinicWebApp;
using VeterinaryClinicBusinessLogics.MailWorker;
using System.Text;
var builder = WebApplication.CreateBuilder(args);
// Ðåãèñòðàöèÿ ïîñòàâùèêà êîäèðîâîê
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
// Add services to the container.
builder.Services.AddControllersWithViews();