Фикс пути до темплейта
All checks were successful
Build and deploy / Publish image (push) Successful in 5m0s

This commit is contained in:
2025-01-02 17:09:47 +03:00
parent 200924e02d
commit 00f65b4ca3
3 changed files with 29 additions and 24 deletions

View File

@@ -23,7 +23,7 @@ public class StatementGenerator(GotenbergSharpClient gotenbergSharpClient) : ISt
public async Task<MemoryStream> GenerateStatementAsync(UserData userData)
{
byte[] textByteArray = File.ReadAllBytes(@"C:\Users\Sergey\Desktop\test.docx");
byte[] textByteArray = File.ReadAllBytes("Templates/ictis.docx");
MemoryStream stream = new MemoryStream();
stream.Write(textByteArray, 0, textByteArray.Length);
using (WordprocessingDocument doc = WordprocessingDocument.Open(stream, true))