Blog信息 |
blog名称:注册会计师(注会)练习软件 日志总数:398 评论数量:116 留言数量:27 访问次数:3265164 建立时间:2005年6月6日 |

| |
[borland eco 技术]richedit 的打印时修改边界 软件技术
吕向阳 发表于 2009/2/25 0:21:44 |
procedure TForm1.Button3Click(Sender: TObject);
var r: trect; begin
r := Rect(400, 300, printer.PageWidth - 400, printer.PageHeight - 300);
richedit1.PageRect := r; richedit1.Print('标题');
end;
查了半天网络始终得不到答案,试了老半天才得到
r是rect,分别left ,top,right,bottom的坐标, |
|
[borland eco 技术]怎样引用expressionhandle增加的ocl column列的值 软件技术
吕向阳 发表于 2008/3/7 18:04:06 |
以下是我例程中代码,在ohgoods(这是一个oclpshandle,也可以是一个expressionhandle),在column中增加三个列 ALLXJ,ALLSL,XJ,并且设置其ocl表达式(略)
field1, field2, field3, field4: PropertyDescriptor; vsl, vallsl, vallxj,vprice: double; begin //结帐处理
field1 := ((ohgoods as ITypedList).GetItemProperties(nil)['ALLXJ']);
//这里得到一个PropertyDescriptor属性描述 field2 := ((ohgoods as ITypedList).GetItemProperties(nil)['ALLSL']); field3 := ((ohgoods as ITypedList).GetIte |
|
[borland eco 技术]eco中类group by的查询 软件技术
吕向阳 发表于 2008/3/7 15:17:51 |
使用一个 expressionhandle 表达式为 Hire.allInstaces.BookingDate->asSet 将得到hire中不重复的bookingdate
在expression中增加两个列
Name: 'Date' Ocl: 'self'
Name: "Qty" Ocl: 'Hire.allInstances->select(BookingDate=self)->size' 这相当于分数汇总的效果
也在加一个将下列expressionhandle的表达式连接到一个 currecymangerhandle,再增加一个列 'Hire.allInstances->select(BookingDate=self)'得到当前汇总结果
|
|
[borland eco 技术]令人称奇的devexpress的产品gridcontrol 软件技术
吕向阳 发表于 2008/2/28 21:31:17 |
为做用ECO作数据源的嵌套表格,想了许多办法达不到好的效果,今天在GOOGLE上几行字的一个回复,让我如获至宝,随即问题迎刃而解
"Oleg Zhukov" wrote: > For this purpose I use events for loading details. For example see > GridView.MasterRowGetChildList event. There is good help written > on this topic.
I've just noticed that it's much easier to do this using nesti |
|
[borland eco 技术]eco中expressionhandle使用嵌套在DATAGRID中显示数据(转外文) 软件技术
吕向阳 发表于 2008/2/28 21:08:24 |
Jan Nordén [ Borland ]
Here is some information on nestings that I wrote in another context.
May be of use to someone. IMHO nestings are not all that useful in the winforms grid, but if there are third party treeviews or report generators that support them, they may come in handy.
I will try to explain in informally, using how it is displayed in the default grid for illustration.
To start of, the handles render the input |
|
|