Hallo Leute,
ich erzeuge zur laufzeit dynamisch einen Quickreport.
ich füge mit folgendermaßen ein Detailband hinzu
Quelltext
1: 2: 3: 4: 5:
| FQrBand := FSetupDlg.vQuickReport.createBAnd(rbDetail); FQrBand.ParentReport := FSetupDlg.vQuickReport;
FQRBAnd.Size.Units := MM; FQRBAnd.ForceNewPage := false; |
Und anschließend füge ich mit folgender funktion labels hinzu
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:
| procedure TCBPrinter.addLabel(ALeft, ASize: Integer; ACaption: String); var LLabel: TQRLabel; begin LLabel := TQRLabel(FQrBand.AddPrintable(TQRLabel)); LLabel.Parent := FQrBand; LLabel.Size.Units := MM; with LLabel do begin caption := ACaption; AlignToBand := true; Alignment := taLeftJustify; size.Left := ALeft; Font.Size := ASize; end; FQRBAnd.Height := LLabel.Height + 5; end; |
ich habe die funktionen schon debuggt und keinen fehler gefunden.
Das label übernimmt die übergebene position ist aber im Ausdruck an position 0.
Weiß jemand, woran das liegt?
Ich bin am verzweifeln...
Gruß
Ken