TfxrPictureView OnBeforePrint
I am having an issue where I have to set PictureView properties Center and Stretched, setting the Top and Left properties applies, but not the proir two propperties.
for (int i = 0; i < DM->repCardPrinting->ComponentCount ; i++)
{
l_MV_CardInfo = dynamic_cast<TfrxMemoView *>(DM->repCardPrinting->Components);
l_PV_Picture = dynamic_cast<TfrxPictureView *>(DM->repCardPrinting->Components);
l_SV_CardShape = dynamic_cast<TfrxShapeView *>(DM->repCardPrinting->Components);
....... BLA BLA BLA BLA ........
if (l_PV_Picture)
{
if (DM->GetConfigValue("Card Logo Position") != "")
l_PV_Picture->Center = StrToInt(DM->GetConfigValue("Card Logo Position"));
else
l_PV_Picture->Center = StrToInt(DM->GetConfigDefaultValue("Card Logo Position"));
}
}
Is there any other way I can do this?
for (int i = 0; i < DM->repCardPrinting->ComponentCount ; i++)
{
l_MV_CardInfo = dynamic_cast<TfrxMemoView *>(DM->repCardPrinting->Components);
l_PV_Picture = dynamic_cast<TfrxPictureView *>(DM->repCardPrinting->Components);
l_SV_CardShape = dynamic_cast<TfrxShapeView *>(DM->repCardPrinting->Components);
....... BLA BLA BLA BLA ........
if (l_PV_Picture)
{
if (DM->GetConfigValue("Card Logo Position") != "")
l_PV_Picture->Center = StrToInt(DM->GetConfigValue("Card Logo Position"));
else
l_PV_Picture->Center = StrToInt(DM->GetConfigDefaultValue("Card Logo Position"));
}
}
Is there any other way I can do this?