本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告
================

注会练习软件
http://www.cpasoft.com.cn
我的注会软件官网

http://blog.163.com/abc7105@126/

 

 


哈哈,热爱快“过气”的DELPHI


我的分类(专题)

日志更新

最新评论

留言板

链接

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的坐标,


阅读全文(1750) | 回复(0) | 编辑 | 精华 | 删除
 


[borland eco 技术]删除ECO类的所有记录
软件技术

吕向阳 发表于 2008/3/19 12:48:28

foreach (IObject c in EcoSpace.Ocl.Evaluate"Customer.allInstances").GetAsCollection())
    c.Delete();


阅读全文(2755) | 回复(1) | 编辑 | 精华 | 删除
 


[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

阅读全文(2369) | 回复(0) | 编辑 | 精华 | 删除
 


[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)'得到当前汇总结果
 

阅读全文(3970) | 回复(1) | 编辑 | 精华 | 删除
 


[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

阅读全文(3886) | 回复(1) | 编辑 | 精华 | 删除
 


[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

阅读全文(2463) | 回复(0) | 编辑 | 精华 | 删除
 


« 1 2 3 4 5 6 7 8 9 10 »



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.078 second(s), page refreshed 144753359 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号