询问-如何绕过报告中的日期参数 [英] ASK - How to bypass date parameters in my report

查看:68
本文介绍了询问-如何绕过报告中的日期参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我如何绕过Report Viewer和Crystal Reports中的两个日期参数吗?我可以使用SQL语法查看带参数的报告吗?我在网上搜索,只找到C#语法.请帮我看看示例代码.

Can anybody help me how to bypass two dates parameter in Report Viewer and Crystal Reports? Can I use an SQL syntax to view the report with parameter? I''ve searched around the web and only find C# syntax. Help me please with the sample code.

Dim rpt As New ReportDocument
       rpt.Load(My.Application.Info.DirectoryPath & "\CrystalReport1.rpt")
       CrystalReportViewer1.ReportSource = rpt
       CrystalReportViewer1.Refresh()
       'All I want is to view the data between two dates



我想要的只是查看两个日期之间的数据,而不是参数字段.例如,"textbox1.text和textbox2.text之间的日期"



All I want is to view the data between two dates, not the parameter field. For example, "Where mdate between textbox1.text and textbox2.text"

推荐答案

在这里

使用参数使用Crystal Reports和ASP.NET 2.0 [ VB.NET Crystal Reports Date参数 [水晶报告-获取两个日期之间的数据 [ ^ ]

将C#转换为VB.NET [
Here you go

Working with Parameters with Crystal Reports and ASP.NET 2.0[^]

Free attachments
VB.NET Crystal Reports Date parameter[^]
Crystal Reports - Get data between two dates[^]

Convert C# to VB.NET[^]


这篇关于询问-如何绕过报告中的日期参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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