Я хочу изменить цвет блочного объекта в моем отчете Crystal Report в зависимости от параметра Label Color, который передается с родительским объектом.
public class PartType
{
public string partTypeID { get; set; }
public string name { get; set; }
public int label_R { get; set; }
public int label_G { get; set; }
public int label_B { get; set; }
public int text_R { get; set; }
public int text_G { get; set; }
public int text_B { get; set; }
public Color GetLabelColor()
{
Color color = new Color();
color = Color.FromArgb(label_R, label_G, label_B);
return color;
}
public Color GetTextColor()
{
Color color = new Color();
color = Color.FromArgb(text_R, text_G, text_B);
return color;
}
}
Я не знаю, как получить доступ к заливке цвет объекта коробки, как показано в приведенном ниже коде, насколько я понимаю, как на самом деле получить доступ к коробке через мой начальный C# код.
rptMRPLabel.Section3.ReportObjects["boxTitle"]