出图形报表问题?

sayor 2003-05-12 01:05:26
怎能把一个数据表的数据分类汇总后方便快捷地出图形图(类似EXCEL的图表),在VFP的报表国打印
...全文
43 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ccbzzp 2003-05-12
  • 打赏
  • 举报
回复
用報表經靈吧
rida 2003-05-12
  • 打赏
  • 举报
回复
贴一些我做过的代码给你可能你有帮助

计算数据

lsqlwhere='sshz.sscode=thisform.txt3.value and sshz.month>=thisform.txt4.value and sshz.month<=thisform.txt5.value '

select ;
sshz.sscode as sscode,;
sshz.month as month,;
sshz.zcost as zcost;
from sshz;
where ;
&lsqlwhere ;
into cursor sscbsee22

CRLF=cHR(13)+CHR(10)
TAB=cHR(9)
bartype=-4100
create table foo (gen1 g)
append blank
cgdata=""+tab+sscbsee22.sscode+crlf
sele sscbsee22
scan
cGData =cgdata+subs(month,5,2)+TAB+str(zcost,6,2)+CRLF
endscan
sele foo
append general gen1 class "msgraph.chart" DATA m.cGData
thisformset.frmmodel2.oleboundcontrol1.refresh
THISformset.frmmodel2.OleBoundControl1.ControlSource = "Gen1"
THISformset.frmmodel2.OleBoundControl1.HasLegend = .t.
THISformset.frmmodel2.OleBoundControl1.autoformat(bartype,1)
thisformset.frmmodel2.lockscreen=.t.
thisform.visible=.f.
thisformset.frmmodel2.label1.caption=iif(seek(thisform.txt3.value,'pcode1','code'),alltrim(pcode1.desc),'')
thisformset.frmmodel2.visible=.t.
thisformset.frmmodel2.lockscreen=.f.

打印报表

public SScbsee222
SScbsee222=thisform.label1.caption+'成本分析图'
REPORT FORM REPORTS\ssCBSEE22 PREVIEW
RELEASE SSCBSEE222

主要用Ms Graph 图表

2,749

社区成员

发帖
与我相关
我的任务
社区描述
VFP,是Microsoft公司推出的数据库开发软件,用它来开发数据库,既简单又方便。
社区管理员
  • VFP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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