CrystalReport1.Connect = sDns
CrystalReport1.Destination = crptToPrinter
CrystalReport1.WindowState = crptMaximized
CrystalReport1.DiscardSavedData = True
' CrystalReport1.SelectionFormula = "{rzsj} in " & Date & "' to '" & Date + 1 & ""
' CrystalReport1.SQLQuery = "select fjh from tbl_krxx where datediff(d,rzsj,'" & Date & "')=0"
CrystalReport1.SQLQuery = "select * from tbl_krxx where fjh='1101'"
CrystalReport1.ReportFileName = "c:\krxx.rpt"
CrystalReport1.Action = 1
CrystalReport1.Destination = crptToPrinter
CrystalReport1.WindowState = crptMaximized
CrystalReport1.DiscardSavedData = True
' CrystalReport1.SelectionFormula = "{rzsj} in " & Date & "' to '" & Date + 1 & ""
' CrystalReport1.SQLQuery = "select fjh from tbl_krxx where datediff(d,rzsj,'" & Date & "')=0"
CrystalReport1.SQLQuery = "select * from tbl_krxx where fjh='1101'"
CrystalReport1.ReportFileName = "c:\krxx.rpt"
CrystalReport1.Action = 1
解决方案 »
- inet post 数据时,如果提交cookie Referer 又如何设置
- 怎样用vb设置文件夹权限,问题一直未解决。新帖加分
- 本人正学习vb,制作了几个vb源码,谁能和我一起研究,共同进步
- 如何读取文件名?
- 巨难,高手看过来!from有背景图片,如何使frame和checkbox透明显示在form上?
- 我没分了,不过有个问题还是要麻烦各位雷锋哥哥!
- Delphi下开发的中国式报表Anycell Report的COM版组件。
- MSHFlexgrid表里字段名转换问题
- datareport报表的数据更新
- VB打包后不能正常安装的问题,请高人指点.
- 怎么没人能回答吗?急急!高手请进!VB中如何把MSGIRD中显示的多条记录用水晶报表打印输出??
- VB 能不能做 “webeasymail” 这样的邮件服务?
你的用法还是要去访问数据库呀。我的意思是,记录已经在GRID中显示出来了,现在不用再去访问数据库,而直接把GRID中的记录用水晶报表打印输出
在报表设计器中放上你要打印的字段。记不太清了。好久不用了。试试吧。