Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Label Style

edited July 2002 in General
We are building the Report in run-time and adding the component ppLabel with
property
ppLabel.Style = Bold, but it don?t apply this change. What can is wrong????

Comments

  • edited July 2002
    That should be ppLabel1.Font.Style. Also make sure that whichever event you
    are using is being reconnected if the report is being loaded from a
    template.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited July 2002
    The Report is being loaded from a template (rtm) and adding ppLabel?s and
    ppDBText.
    The property is ppLabel.Font.Style = fsBold. Whichever Property from FONT
    don?t change(Color, Style ...).




    "Alexander Kramnik (Digital Metaphors)"
  • edited July 2002
    When are the labels being created and when is the property being set (i.e.
    which method/event)?

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited July 2002
    Alexander,

    This source used to load and create the ppLabels and ppDBText...

    dmGerRel.ppRelato.Template.FileName := 'c:\teste\Modelo.rtm';
    dmGerRel.ppRelato.Template.LoadFromFile;
    dmGerRel.ppRelato.DataPipeline := dmGerRel.ppOriDad;
    dmGerRel.ppRelato.Units := utMillimeters;
    vDBText := TGetDBText.Create(nil);
    vDBText.AutoSize := false;
    vDBText.DataField := dmGerRel.ppOriDad.DataSource.DataSet.Fields
    [1].FullName;
    vDBText.DataPipeline := dmGerRel.ppOriDad;
    vDBText.Band := dmGerRel.ppRelato.DetailBand;
    vDBText.Width := StrToFloat(lvwColuna.Items[i].SubItems[0]) - 2;
    vDBText[i].Alignment := dmGerRel.ppOriDad.DataSource.DataSet.Fields
    [1].Alignment;
    vLabel := TppLabel.Create(nil);
    vLabel.Band := dmGerRel.ppRelato.HeaderBand;
    vLabel.AutoSize := false;
    vLabel.Caption := 'Test';
    vLabel.Width := 100;
    vLabel.Font.Style := [fsBold];
    vLabel.Top := 50;
    vDBText.Left := 0;




    "Alexander Kramnik (Digital Metaphors)"
This discussion has been closed.