Home > Back-end >  FastReport report after loading picture, the position of the picture how to position?
FastReport report after loading picture, the position of the picture how to position?

Time:04-05

How to according to the program to locate the location of the picture?
Program is to image positioning:
TfrxPictureView (frxReport1 FindObject (' Picture1 ')). The Top:=StrToInt (Edit_top. Text);
But no matter use, because all StrechMode attribute set smMaxHeight Memo1 control that cause or shown in the above images, or shown in the following,

Picture is in Footer1 controls, but put a Memo1 Footer1 controls, this Memo1 control StrechMode attribute set smMaxHeight, mean when Memo1 content many Memo1 height as content automatically rise, Picture1 controls also in Footer1, and above the Picture1 controls on Memo1, so the question comes, Picture1 controls the final or displayed at the top of the Memo1 displayed either under Memo1, how to adjust all can't show any position in the middle of the Memo1, I tested, if the Memo1 StrechMode attribute set smDontStretch can achieve, but StrechMode attribute must be set smMaxHeight,
Now to display images in any position, Footer1 is pictures to show in any position, Memo1?


Red box is Memo1 control that blue box is Picture1 control



CodePudding user response:

First of all, is usually the Footer (Footer) is a fixed height, showing some of the page, for example, LOGO, etc., not for other,
So, you put a Memo that increased automatically, when the Memo height is greater than the Foolter, there may be a problem,
I remember the Picture can be fixed position, and won't be affected by other controls,

CodePudding user response:

I know, but there is no solution, do you have a solution?

CodePudding user response:

refer to the second floor luojianfeng response:
I know, but there is no solution, do you have a solution?


Put the Memo on the Footer outside a try, just behind the two lines (stamp) put the words in the Footer,

Also, I remember the Footer should be each page is printed oh, and you should not, you should be just back to print,

CodePudding user response:

Memo on the outside of the Footer

CodePudding user response:

Footer with PageFooter also not line

CodePudding user response:

Is the seal picture? Can put the pictures of the Parent is set to the Memo

CodePudding user response:

You try the following steps:

1, Memo1 controls StrechMode attribute is set to smActualHeight;
2, image positioning properties are as follows:


Located in the lower right corner,

3, Footer1 AfterCalcHeight events inside to write the following code:
 
Procedure Footer1OnAfterCalcHeight (Sender: TfrxComponent);
The begin
Footer1. Height:=memo1. Height;
The end;


So when redesign the footer1 height for memo1 height, then the picture because of the location in the lower right corner, will automatically change the position,

My design:


Preview:




CodePudding user response:


Such a design, the effect of preview out is the same,
  • Related