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.
This commit is contained in:
2026-05-28 17:08:18 +02:00
parent 60f01565da
commit 2a8fed166b

View File

@@ -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)