当要动态设置行高时,可在fastreport设计器中增加对话框DialogPage1,然后在对话框中增加文本编辑Edit1
void MasterData1OnBeforePrint(TfrxComponent Sender)
{
MasterData1.Height=StrToInt(Edit1.Text); //这里的高度为像素,和设计器中的厘米不同
}
要用".",不能用"->".
当要动态设置行高时,可在fastreport设计器中增加对话框DialogPage1,然后在对话框中增加文本编辑Edit1
void MasterData1OnBeforePrint(TfrxComponent Sender)
{
MasterData1.Height=StrToInt(Edit1.Text); //这里的高度为像素,和设计器中的厘米不同
}
要用".",不能用"->".