如何打印会话值或任何其他不是来自数据库的值。 [英] how to print session value or any other value which is not coming from database.

查看:80
本文介绍了如何打印会话值或任何其他不是来自数据库的值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道如何将会话值传递给crystal report以及如何打印它。这是一个场景...

在我的应用程序中,用户从日期和两个日期中选择,我通过存储过程传递这两个日期并获取数据并使用水晶报告显示给用户。现在我想在标题上显示从月份:'月选择'和Todate:'月被选中'。当用户点击打印报告按钮时,我在我的aspx页面上有这些数据。我想,如果我可以将这两个数据传递给水晶报告并打印出来。



提前致谢....

hi to all,
I want to know that how to pass session value to crystal report and how to print it. Here is a scenario...
In my application user selects from date and two date, I pass these two dates via stored procedure and fetch data and show it to user using crystal report. Now I want to show on header that " From month:'Month selected' and Todate:'Month which is selected'". I have these data on my aspx page when user click on print report button. I want, if i can pass these two data on crystal report and print it.

Thanks in advance....

推荐答案

在本教程中,他们将值从文本框传递到报告,只需自定义代码即可。

C#Crystal Reports - 迄今为止的日期 [ ^ ]
In this tutorial, they pass the values from textboxes to report, just customize the code, that's it.
C# Crystal Reports - Date to Date[^]


这篇关于如何打印会话值或任何其他不是来自数据库的值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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