PB打印预览,部分值显示不出来

TYPHOON0000 2014-01-07 11:19:31
很久以前的程序,用来输入凭证,
1、最近新增了一个用户,做的单据在打印预览的时候,数据无法显示出来。其他用户做的单却没有问题。
2、检查调用的DATA SOURCE,查对应的单据,数据正常。
DATA WINDOW


实际显示时,后边三个单元格都为空白,但是,合计行却有数(合计行数据PS处理过)


调出了DATA SOURCE后,查询,数据没有问题。

请高手指点,谢谢。

...全文
511 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
TYPHOON0000 2014-01-13
  • 打赏
  • 举报
回复
引用 5 楼 sdhp 的回复:
这种要检查:显示内容,visible,字体颜色等 首先看你有合计应该显示内容没有什么问题(如果合计公式正确的话) 第二,楼上所说的visible属性,这个可以给空间设置一个边框,然后预览来看有没有边框来确定(看你这个似乎是有边框的visible属性应该也没什么问题) 第三,看看字体颜色有没有按照用户信息来显示成白色或其他什么很淡的颜色 其他……还没想出来 你可以Edit source把compute_3的那一段代码贴出来看看
color="33554432~tif ( (class like '%D%' ) or  dr = 0  , rgb( 255,255,255), rgb(0,0,0)
sdhp 2014-01-13
  • 打赏
  • 举报
回复
问题就在这里了: color="33554432~tif ( (class like '%D%' ) or dr = 0 , rgb( 255,255,255), rgb(0,0,0))" 满足class like '%D%'这个条件了吧
TYPHOON0000 2014-01-13
  • 打赏
  • 举报
回复
引用 5 楼 sdhp 的回复:
这种要检查:显示内容,visible,字体颜色等 首先看你有合计应该显示内容没有什么问题(如果合计公式正确的话) 第二,楼上所说的visible属性,这个可以给空间设置一个边框,然后预览来看有没有边框来确定(看你这个似乎是有边框的visible属性应该也没什么问题) 第三,看看字体颜色有没有按照用户信息来显示成白色或其他什么很淡的颜色 其他……还没想出来 你可以Edit source把compute_3的那一段代码贴出来看看

column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="33554432~tif (  class like '%D%' , rgb( 255,255,255), rgb(0,0,0))" x="2642" y="8" height="68" width="1362" format="[general]" html.valueishtml="0"  name=sy_desc visible="1" edit.limit=30 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0  font.face="Arial" font.height="-8~tif(len(trim(sy_desc))>=58,40,50)  " font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=11 alignment="1" tabsequence=32766 border="2" color="33554432~tif (  (class like '%D%'  )or dr = 0, rgb( 255,255,255), rgb(0,0,0))" x="4014" y="4" height="72" width="389" format="#,##0.00" html.valueishtml="0"  name=dr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=12 alignment="1" tabsequence=32766 border="2" color="33554432~tif ( ( class like '%D%') or cr = 0 , rgb( 255,255,255), rgb(0,0,0))" x="4407" y="4" height="72" width="379" format="#,##0.00" html.valueishtml="0"  name=cr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
compute(band=detail alignment="1" expression="dr"border="2" color="33554432~tif ( (class like '%D%' ) or  dr = 0  , rgb( 255,255,255), rgb(0,0,0))" x="4014" y="4" height="72" width="389" format="#,##0.00;(#,##0.00)" html.valueishtml="0"  name=compute_3 visible="0~tif( dr <>0  ,1 ,0)"  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
compute(band=detail alignment="1" expression="cr"border="2" color="33554432~tif ((class like '%D%' ) or  cr = 0 , rgb( 255,255,255), rgb(0,0,0))" x="4407" y="4" height="72" width="379" format="#,##0.00;(#,##0.00)" html.valueishtml="0"  name=compute_4 visible="0~tif( dr <>0  ,1 ,0)"  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=22 alignment="0" tabsequence=32766 border="2" color="33554432" x="0" y="4" height="72" width="1957" format="[general]" html.valueishtml="0"  name=gl_hist_reference visible="1" edit.limit=30 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0  font.face="Arial" font.height="-8~tif(len(trim(gl_hist_reference))>=62,40,50)" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="2" color="33554432" x="1966" y="4" height="72" width="667" format="[general]" html.valueishtml="0"  name=pc visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="0" text="" border="2" color="33554432~tif (  class like '%D%' , rgb( 255,255,255), rgb(0,0,0))" x="2638" y="4" height="72" width="1371" html.valueishtml="0"  name=t_1 visible="1"  font.face="Arial" font.height="-8~tif(len(trim(sy_desc))>=50,40,50)  " font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=summary alignment="1" text="合计" border="0" color="33554432" x="425" y="8" height="56" width="160" html.valueishtml="0"  name=t_9 visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=summary alignment="1" text="合计:" border="2" color="33554432" x="0" y="0" height="72" width="4009" html.valueishtml="0"  name=t_8 visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
compute(band=summary alignment="1" expression="sum(dr  for all)"border="2" color="33554432" x="4014" y="0" height="72" width="389" format="#,##0.00;(#,##0.00)" html.valueishtml="0"  name=compute_7 visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
compute(band=summary alignment="1" expression="sum(cr  for all)"border="2" color="33554432" x="4407" y="0" height="72" width="379" format="#,##0.00;(#,##0.00)" html.valueishtml="0"  name=compute_8 visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
 
A啦Dbit 2014-01-09
  • 打赏
  • 举报
回复
引用 5 楼 sdhp 的回复:
这种要检查:显示内容,visible,字体颜色等 首先看你有合计应该显示内容没有什么问题(如果合计公式正确的话) 第二,楼上所说的visible属性,这个可以给空间设置一个边框,然后预览来看有没有边框来确定(看你这个似乎是有边框的visible属性应该也没什么问题) 第三,看看字体颜色有没有按照用户信息来显示成白色或其他什么很淡的颜色 其他……还没想出来 你可以Edit source把compute_3的那一段代码贴出来看看
+1 要看 Edit source
sdhp 2014-01-09
  • 打赏
  • 举报
回复
这种要检查:显示内容,visible,字体颜色等 首先看你有合计应该显示内容没有什么问题(如果合计公式正确的话) 第二,楼上所说的visible属性,这个可以给空间设置一个边框,然后预览来看有没有边框来确定(看你这个似乎是有边框的visible属性应该也没什么问题) 第三,看看字体颜色有没有按照用户信息来显示成白色或其他什么很淡的颜色 其他……还没想出来 你可以Edit source把compute_3的那一段代码贴出来看看
jornye 2014-01-07
  • 打赏
  • 举报
回复
dw的visible属性里有没有写逻辑? 如果没有,走读用户预览那块的代码,按你这种说法,代码里应该有和用户信息关联的显示逻辑`
TYPHOON0000 2014-01-07
  • 打赏
  • 举报
回复
引用 1 楼 jornye 的回复:
visible都没打勾??
去掉也不行,因为其他单据是没有问题的。 只有这个用户做的单据才有问题。 这个永和做好单据后,在别的机器上,别的用户预览也是空白的。
TYPHOON0000 2014-01-07
  • 打赏
  • 举报
回复
引用 楼主 TYPHOON0000 的回复:
很久以前的程序,用来输入凭证, 1、最近新增了一个用户,做的单据在打印预览的时候,数据无法显示出来。其他用户做的单却没有问题。 2、检查调用的DATA SOURCE,查对应的单据,数据正常。 DATA WINDOW 实际显示时,后边三个单元格都为空白,但是,合计行却有数(合计行数据PS处理过) 调出了DATA SOURCE后,查询,数据没有问题。 请高手指点,谢谢。
去掉也不行,因为其他单据是没有问题的。 只有这个用户做的单据才有问题。 这个永和做好单据后,在别的机器上,别的用户预览也是空白的。
jornye 2014-01-07
  • 打赏
  • 举报
回复
visible都没打勾??

611

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧