使用VB.net在Crystal Reports 9中记录选择 [英] Record Selection in Crystal Reports 9 using VB.net

查看:81
本文介绍了使用VB.net在Crystal Reports 9中记录选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用vb.net以编程方式使用CR9中的记录选择公式?我有一个显示日期的组合框。如果我选择日期,我可以根据所选日期生成报告。在此先感谢

How to use the record selection formula in CR9 programatically using vb.net? I have a combo box that displays the date. If I select date, I can generate a report based on the selected date. Thanks in advance

推荐答案

您好,


将此RecordSelectionFormula传递给报告:

Hi,

Pass this RecordSelectionFormula to the Report:

展开 | 选择 | Wrap | 行号


啊,我明白了,那就是我错过了,我实际上使用了那个.recordselectionformula = Date& " combbox.text ....它说这里需要一个日期时间...我想这就是我所缺少的。感谢您的答复。我查了一下。
Ah, I see, that''s what Im missing, I acutally used that ".recordselectionformula = Date & " combbox.text....and it says a date-time is required here... I guess this is what Im missing. Thanks for your response. I check it out.


你好Veena,

我试图在我的记录选择中使用它,但是,我收到一个错误,The)缺失 ;当我检查它时,我错过了这里的任何部分? thnks。


VB代码:

CrystalReportViewer1.SelectionFormula =" {vTITO_Rpt.WorkDate}日期(&& Format(cmbxDateFrom.Text,") ; YYYY,MM,DD"&")To Date("& Format(cmbxDateTo.Text," YYYY,MM,DD")&")"


问候
Hi Veena,
I tried to used this in my record selection, however, I received an error, "The ) is missing" when I checked it, any part here that I missed? thnks.

VB code:
CrystalReportViewer1.SelectionFormula = "{vTITO_Rpt.WorkDate} In Date (" & Format(cmbxDateFrom.Text, "YYYY,MM,DD") & ") To Date (" & Format(cmbxDateTo.Text, "YYYY,MM,DD") & ")"

Regards


这篇关于使用VB.net在Crystal Reports 9中记录选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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