asp.net中的水晶报表问题,c# [英] problem with crystal report in asp.net,c#

查看:66
本文介绍了asp.net中的水晶报表问题,c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我使用asp.net,c#和sql2005为我的网站创建Crystal报表.

但是当我想运行报告时,我应该输入一些有关数据库和服务器的信息,以及....

我填满了它们,但返回到该页面

为什么 ?请帮助我......

在我的代码中,我写道:

Hi
I create crystal report for my website with asp.net,c# and sql2005

but when I want run my report, I should type some info about DB and server and....

I fill them, but back to that page

Why ? PLEASE HELP ME......

In my code, i wrote:

ReportDocument report = new ReportDocument();
report.Load(Server.MapPath("SampleRpt.rpt"));
report.SetDatabaseLogon("venus-PC\venus", "1", @".", "TEST");
rptviewer.ReportSource = report;

推荐答案

是的,您需要在绑定数据并将其加载以供显示之前设置身份验证详细信息.
查看是否有这些帮助:
C#Crystal Reports动态登录参数 [ Crystal Reports在加载时要求输入用户名和密码 [使用具有.NET的Crystal Reports对数据库登录错误进行故障排除 [ ^ ]
主题:每次询问用户名密码 [
Yes, you need to set the authentication details before binding data and loading it up for display.

See if these help:
C# Crystal Reports Dynamic Logon parameters [^]
Crystal Reports asks for Username and Password while loading[^]
Troubleshooting Database Login Errors using Crystal Reports with .NET[^]
Topic: asking every time username password[^]


这篇关于asp.net中的水晶报表问题,c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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