vb.net 2012与水晶报告与数据库2003访问 [英] vb.net 2012 with crystal report with database 2003 access

查看:64
本文介绍了vb.net 2012与水晶报告与数据库2003访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨那里,

水晶报告当我删除账单项目时没有刷新

i想在我删除或在数据库中添加记录后立即刷新我的数据报告。

i有数据环境和我的报告所基于的一些命令。

我的问题是,当我删除特定记录然后如果我想看到报告然后仍然删除屏幕上显示记录





这是我的代码

Hi there,
crystal report no refresh when i delete item of bill
i want to refresh my data report immediately after i delete or add record in the database.
i have data environment and some commands on which my reports are based.
my problem is that when i delete perticular record and then if i want to see the report then still that deleted record is seen on the screen


this is my code

Public Sub B_Print_Click(sender As Object, e As EventArgs) Handles B_Print.Click
 
Dim RPT As New RPT_BILLsell
        CONN.Open()
               RPT.Load(Application.StartupPath & "\RPT_BILLsell.rpt")
         Dim newviewre As New F_PRINT
        newviewre.CrystalReportViewer1.ReportSource = RPT
        newviewre.Text = " BILL Sell "
        newviewre.CrystalReportViewer1.LogOnInfo.Item(0).ConnectionInfo.Password = "password_db"
        ' newviewre.CrystalReportViewer1.RefreshReport()
        newviewre.CrystalReportViewer1.Refresh()
        RPT.SetParameterValue(0, Val(TRANS_CODE.Text))
        newviewre.CrystalReportViewer1.ParameterFieldInfo.Clear()
        newviewre.ShowDialog()
        CONN.Close()
end sub

推荐答案

这篇关于vb.net 2012与水晶报告与数据库2003访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆