当前位置:首页 > 技术问答集
firefox

动态建立计算域的问题

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

我动态建立数据窗口后,想建立一个计算域来在前面标明行数:  
  dw_1.modify("create   compute(band=detail   alignment=2   border=2   name=rownum_1   expression=getrow()")  
  可是不成功,不知道哪出错了.另外,怎么样才能指定计算域在所有的列之前,保证在第一列.  
   
  另外,我在使用odbc连接时,发现在程序编译后,在别的机子上无法正常使用odbc,只能用sql   server   2000的关键字连接,且连接读取数据的速度相当的慢,不知道为什么.

· 网友精彩回答:

发表者:saiche05

dd  
   
  牛b来。

发表者:pyzs2004

建計算列的完整語法  
  <dw   control   name>.modify(&  
  "create   compute(band=<detail,   footer,   header,   header.<group   #>,   summary,   trailer.<group   #>,   background,   foreground>"   +   &  
  "   color=<a   long>   alignment=<0   -   left,   1   -   right,   2   -   center>   border=<0   -   none,   1-   shadow,   2   -   box,   3   -   resize,   4   -   underline,   5   -   3d   lowered,   6   -   3d   raised>"   +   &  
  "   height.autosize=<yes   or   no>   pointer=<arrow!,   cross!,   hourglass!,   ibeam!,   icon!,   size!,   sizenesw!,   sizens!,   sizenwse!,   sizewe!,   uparrow!,   or   cursor   filename   (with   path)>   moveable=<0   -   false,   1   -   true>   resizeable=<0   -   false,   1   -   true>   x=<an   integer>   y=<an   integer>   height=<an   integer>   width=<an   integer>   format=<constant   string   containing   display   format   (i.e.,   [general])   for   col   (can   also   be   an   expression)>"   +   &  
  "   name=<string>   tag=<string>   expression=<expression>   font.face=<name   of   type   face   (i.e.,   system,   courier)>   font.height=<negative   number   for   points,   positive   number   for   pbus   (i.e.,   -10   =   10   points,   10   =   10   pbus>   font.weight=<400   -   normal,   700   -   bold>   font.family=<0   -   anyfont,   1   -   roman,   2   -   swiss,   3   -   modern,   4   -   script,   5   -   decorative>   font.pitch=<0   -   default,   1   -   fixed,   2   -   variable>   font.charset=<0   -   ansi,   1   -   default,   2   -   symbol,   128   -   shift   jis,   255   -   oem>   font.italic=<0   -   false,   1   -   true>   font.strikethrough=<0   -   false,   1   -   true>   font.underline=<0   -   false,   1   -   true>   background.mode=<0   -   opaque,   1   -   transparent>   background.color=<a   long>)")

发表者:zhangyao2000

“compute(”的右括号在哪里??  
  是不是这个问题啊!

.
© 2006-2008 All Rights Reserved