如何使用VB2010将查询传递给报表 [英] How to pass a query to a report with VB2010

查看:95
本文介绍了如何使用VB2010将查询传递给报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想将查询(不是数据集)传递给使用Crystal Report完成的报告。



使用以前版本的Visual Studio,我使用了以下代码:

Dim crReport As CRAXDRT.Report

Dim crApp As New CRAXDRT.Application()

Dim qs As String = Me.getQueryString()

crReport.SQLQueryString = qs



现在我想对VB2010做同样的事情:
$
Dim cryRpt As New ReportDocument

....
$


有可能吗?

Hi,
I'd like to pass a query (not a dataset) to a report done with Crystal Report.

With previous versions of Visual Studio I used this code:
Dim crReport As CRAXDRT.Report
Dim crApp As New CRAXDRT.Application()
Dim qs As String = Me.getQueryString()
crReport.SQLQueryString = qs

Now I'd like to do the same with VB2010:
Dim cryRpt As New ReportDocument
....

Is it possible?

推荐答案

你好ioclaudio,

Hi ioclaudio,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

这个队列是对于VB.Net。我担心你关于Crystal Report的话题超出了这个范围。我将把这个帖子移到离题论坛。我建议你连接到Crystal Report的官方网站找到解决方案:
http://www.sdn.sap.com/irj/scn/advancedsearch?query=crystal+report

This queue is for VB.Net. I’m afraid that your topic about Crystal Report is out of scope here. I will move this thread to off-topic forum. I suggest you to connect to the official website of Crystal Report to find the solution: http://www.sdn.sap.com/irj/scn/advancedsearch?query=crystal+report .

对不起失禁,祝你有个愉快的一天。

Sorry for any incontinences and have a nice day.


这篇关于如何使用VB2010将查询传递给报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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