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????
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.
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 ...).
Comments
are using is being reconnected if the report is being loaded from a
template.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
ppDBText.
The property is ppLabel.Font.Style = fsBold. Whichever Property from FONT
don?t change(Color, Style ...).
"Alexander Kramnik (Digital Metaphors)"
which method/event)?
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
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)"