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?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.