如何操作:报告w/5个子和不同数量的参数 [英] How To?: Report w/5 subs and varying numbers of parameters

查看:44
本文介绍了如何操作:报告w/5个子和不同数量的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这不是我所提出问题的正确论坛,我深表歉意.

I apologize if this is not the correct forum for my question.

我仍然是.net和Visual Studio(2010年)编码的新手.我有一份报告,我正在尝试从旧的Access应用程序(Windows应用程序-不是Web应用程序)在C#VS2010中重建.它有五个子报告.它是用Crystal内置的,但我没有 认为这应该很重要.有一种形式可以启动报告,用户可以在其中选择一个到七个不同的参数.当一次使用两个参数运行XSD时,我看不到如何使用XSD来执行此操作 通过了,下次是5、3或其他.我建立XSD的目的只是为了让我可以提供一些字段来创建报告,但是如何编写其他所有代码却是我所不了解的.在我看来,我需要在实际中构建动态SQL语句 根据所选参数(也用于子报告)启动表单.我不知道该怎么做(我相信这里的很多人都觉得它很基础).我似乎也找不到显示该操作方法的示例.任何人都可以张贴示例链接 我该怎么做? 1)即时创建SQL并启动主报表,以及2)如何对我的子报表也执行此操作?我可以构建SQL.我只是不知道如何将所有内容捆绑在一起以使用该SQL运行报表.

I'm still a newbie to coding in .net and Visual Studio (2010).  I have a report I'm trying to rebuild in C# VS2010 from an old Access app (Windows app - not web app).  It has five sub reports on it.  It's being built in Crystal, but I don't think that should matter much.  There is a form that launches the report in which the user can select anywhere from one to seven different parameters.  I don't see how I can do this using an XSD when one time it might run with two parameters being passed and the next time five, three or whatever.  I built XSD just so I can have fields present to create the report, but how to code everything else is what I don't understand.  It seems to me I need to build dynamic SQL statement in the actual launching form based upon parameters selected (also for sub reports).  I don't know how to do this (I'm sure many on here find it elementary).  I can't seem to find examples showing how to do it either.  Can anyone post some links to examples of how to do what I need?  1) Creating SQL on the fly and launching main report, and 2) how to also do this for my sub reports?  I can build the SQL.  I just don't know how to tie it all together to run the report with that SQL.

推荐答案

你好,

      谢谢您的发帖!我建议在( Microsoft开发人员网络 > 论坛首页 > Visual Studio论坛 > Visual Studio报表控件)论坛位于: ( http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/threads )

        Thank you for your post!  I would suggest creating a new thread for your question in the ( Microsoft Developer Network > Forums Home > Visual Studio Forums > Visual Studio Report Controls) forum located here:  ( http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/threads).

     希望会有所帮助.

        Hope that would be helpful.

      祝你有美好的一天!

        Have a great day!

      谢谢&问候

        Thanks & regards,


这篇关于如何操作:报告w/5个子和不同数量的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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