WPCubed Product Support

Images in header are to high

Hi Julian,
With version 5.18.6, in the header/footer, images inserted in a table are displayed 1 line too high. It's OK if the image is not in a table.

I used WPRichText.TextObjects.Insert(TWOPImageLogo);

Thank you.

#1 ♥ 0
5.5k Views 3 users read 1 min

Hi! Can you post here the entire code you use to make the header? I'm asking cause I'm trying to put the logo in header but I'm having problems.

Thanks

#2 ♥ 0

ImageLogo is a TImage.

procedure Logo
var
TWOPImageLogo : TWPOImage;
begin
TWOPImageLogo := TWPOImage.Create(WPRichText);
ImageLogo.AutoSize := true;
ImageLogo.Proportional := true;
ImageLogo.Stretch := false;

// Assign the Bitmap to ImageLogo
ImageLogo.Picture.Assign(pFIBDataSetLogoEtab.FieldByName('LOGO'));

TWOPImageLogo.Assign(ImageLogo.Picture.Graphic);
WPRichText.TextObjects.Insert(TWOPImageLogo);
end;

#3 ♥ 0
support

Hi,

You can now download V5.18.8 which uses revised image heights in the header. There also was a problem wih paragraph dependent images an the height of the line. I also have checked your file - I cannot see any problem anymore. Deleting the mentioned tabs moves your 'dossier' line and the line break appears correctly.

Julian

#4 ♥ 0
This category is archived. No new posts are possible.