Выгрузка в пдф
This commit is contained in:
parent
94d89e7e27
commit
b0510098af
@ -57,7 +57,7 @@ namespace VeterinaryClinicBusinessLogics.OfficePackage
|
|||||||
// Записываем номер визита - дата
|
// Записываем номер визита - дата
|
||||||
CreateRow(new PdfRowParameters
|
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",
|
Style = "Normal",
|
||||||
ParagraphAlignment = PdfParagraphAlignmentType.Left
|
ParagraphAlignment = PdfParagraphAlignmentType.Left
|
||||||
});
|
});
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<PackageReference Include="DocumentFormat.OpenXml" Version="3.0.2" />
|
<PackageReference Include="DocumentFormat.OpenXml" Version="3.0.2" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
||||||
<PackageReference Include="PdfSharp.MigraDoc.Standard" Version="1.51.15" />
|
<PackageReference Include="PdfSharp.MigraDoc.Standard" Version="1.51.15" />
|
||||||
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -6,9 +6,13 @@ using Microsoft.OpenApi.Models;
|
|||||||
using VeterinaryClinicBusinessLogics.OfficePackage.Implements;
|
using VeterinaryClinicBusinessLogics.OfficePackage.Implements;
|
||||||
using VeterinaryClinicBusinessLogics.OfficePackage;
|
using VeterinaryClinicBusinessLogics.OfficePackage;
|
||||||
using VeterinaryClinicBusinessLogics.MailWorker;
|
using VeterinaryClinicBusinessLogics.MailWorker;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
// Ðåãèñòðàöèÿ ïîñòàâùèêà êîäèðîâîê
|
||||||
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||||
|
|
||||||
builder.Logging.SetMinimumLevel(LogLevel.Trace);
|
builder.Logging.SetMinimumLevel(LogLevel.Trace);
|
||||||
//builder.Logging.AddLog4Net("log4net.config");
|
//builder.Logging.AddLog4Net("log4net.config");
|
||||||
|
|
||||||
|
@ -6,9 +6,13 @@ using VeterinaryClinicContracts.StoragesContracts;
|
|||||||
using VeterinaryClinicDatabaseImplement.Implements;
|
using VeterinaryClinicDatabaseImplement.Implements;
|
||||||
using VeterinaryClinicWebApp;
|
using VeterinaryClinicWebApp;
|
||||||
using VeterinaryClinicBusinessLogics.MailWorker;
|
using VeterinaryClinicBusinessLogics.MailWorker;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
// Ðåãèñòðàöèÿ ïîñòàâùèêà êîäèðîâîê
|
||||||
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||||
|
|
||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
builder.Services.AddControllersWithViews();
|
builder.Services.AddControllersWithViews();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user