如何仅按比例生成具有所需字段的报告 [英] how to generate reports with needed fields only prorammically

查看:101
本文介绍了如何仅按比例生成具有所需字段的报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

iam尝试根据用户在运行时选择的字段生成报告.
我需要的是用户将选择报告所需的字段并生成报告供其使用.这样就不会看到不需要的详细信息.我正在使用的rdbms是sql server 2008和前端visual studio2010.
谁能帮我

在此先感谢

hi all

iam trying to generate reports according to the fields selected by the user at runtime .
my need is the user will select the needed fields for the report and generating report for their use.thus unwanted details are not seen.the rdbms i am using is sql server 2008 and front end visual studio 2010.
Can any one help me

thanks in advance

推荐答案

您需要在运行时构造用于select查询或存储过程的参数.

根据您使用的是内联查询还是存储过程,这是一种解决方案

http://stackoverflow.com/questions/8125600/t-sql-dynamic-query-by-selected-column-in-asp-net-gridview [
You need to construct the parameters for the select query or stored procedure at runtime.

Depending whether you are using a inline query or stored procedure, here is one solution

http://stackoverflow.com/questions/8125600/t-sql-dynamic-query-by-selected-column-in-asp-net-gridview[^]


这篇关于如何仅按比例生成具有所需字段的报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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