DBgrideh内容在横向上都能直接设置左右对齐,甚至居中,但是唯独却没有设置内容的垂直居中,这在调整了高度后就会很难看,来段代码解决下。 方法如下: procedure Tform1.reflay; var Count: integer; begin for Count:= 0 to DBGridEh1.Columns.Count-1 do begin DBGridEh1.Columns[Count].Layout

DBgrideh内容在横向上都能直接设置左右对齐,甚至居中,但是唯独却没有设置内容的垂直居中,这在调整了高度后就会很难看,来段代码解决下。 方法如下: procedure Tform1.reflay; var Count: integer; begin for Count:= 0 to DBGridEh1.Columns.Count-1 do begin DBGridEh1.Columns[Count].Layout
运行Fastreport时。报表在showreport 出现 cannot use the same dataset for report.dataset and Band.DataSet。 解决方法: 不要设置 frxReport1 的 dataset 属性 , 在设计数据报表时先引入数据源:打开报表设计器==〉选择菜单[表表]==> [数据…]==>选取报表数据库就可以了 最后要保存才会生效。
登录 |