From 2a8fed166b967bf2dfbcc4b8bf8d4647b383b981 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 28 May 2026 17:08:18 +0200 Subject: [PATCH] Adjust signature layout and bottom margin height Increased the `bottomMargin` height from 140F to 175F to provide additional space. Updated the `signatureInformation` format to simplify text structure, remove redundant labels, and use a short date format. Modified the `XRLabel` to enable multiline text, adjusted its height to 70F, and changed text alignment to `TopLeft`. Updated the `XRPictureBox` position by shifting its Y-coordinate to 80F for better alignment with the new layout. --- .../Pages/ReportViewer.razor | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/EnvelopeGenerator.ReceiverUI/Pages/ReportViewer.razor b/EnvelopeGenerator.ReceiverUI/Pages/ReportViewer.razor index cd5bc717..d69c487f 100644 --- a/EnvelopeGenerator.ReceiverUI/Pages/ReportViewer.razor +++ b/EnvelopeGenerator.ReceiverUI/Pages/ReportViewer.razor @@ -291,26 +291,27 @@ report.Bands.Add(bottomMargin); } - bottomMargin.HeightF = Math.Max(bottomMargin.HeightF, 140F); + bottomMargin.HeightF = Math.Max(bottomMargin.HeightF, 175F); RemoveExistingSignature(bottomMargin); var signatureInformation = string.IsNullOrWhiteSpace(signerPosition) - ? $"Empfaengerunterschrift\nName: {signerFullName}\nOrt: {signaturePlace}\nDatum: {DateTime.Now:g}" - : $"Empfaengerunterschrift\nName: {signerFullName}\nPosition: {signerPosition}\nOrt: {signaturePlace}\nDatum: {DateTime.Now:g}"; + ? $"Empfaengerunterschrift\n{signerFullName}\n{signaturePlace}, {DateTime.Now:d}" + : $"Empfaengerunterschrift\n{signerFullName}\n{signerPosition}\n{signaturePlace}, {DateTime.Now:d}"; var signatureLabel = new XRLabel { Name = "receiverSignatureLabel", Text = signatureInformation, - BoundsF = new RectangleF(390F, 6F, 230F, 48F), + Multiline = true, + BoundsF = new RectangleF(390F, 6F, 230F, 70F), Font = new DXFont("Open Sans", 8F, DXFontStyle.Bold), ForeColor = System.Drawing.Color.FromArgb(73, 80, 87), - TextAlignment = TextAlignment.MiddleLeft + TextAlignment = TextAlignment.TopLeft }; var signature = new XRPictureBox { Name = "receiverSignatureImage", ImageSource = imageSource, - BoundsF = new RectangleF(390F, 58F, 230F, 70F), + BoundsF = new RectangleF(390F, 80F, 230F, 70F), Sizing = ImageSizeMode.ZoomImage, Borders = BorderSide.Bottom, BorderColor = System.Drawing.Color.FromArgb(73, 80, 87)