水晶报告的问题 [英] Problem of Crystal Report
本文介绍了水晶报告的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的先生/女士
我使用asp.net作为语言,visual studio 2005和sql enterprise 2000
当我创建水晶报告时,它总是询问服务器名称数据库等,数据库字段仍然是不可编辑的空白先生我正在使用
Dear Sir/Ma''am
I am using asp.net with av as language ,visual studio 2005 and sql enterprise 2000
when i m creating crystal report it ask always for server name database etc and database field remains uneditable and blank sir i am using
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
crypt = New ReportDocument
crtableLogoninfos = New TableLogOnInfos()
crtableLogoninfo = New TableLogOnInfo()
crConnectionInfo = New ConnectionInfo()
crypt.Load("C:\Documents and Settings\ankur\My Documents\Visual Studio 2005\WebSites\WebSite4\CrystalReport.rpt")
crConnectionInfo.ServerName = "."
crConnectionInfo.DatabaseName = "fee_srms"
crConnectionInfo.UserID = "sa"
crConnectionInfo.Password = "database"
crtables = crypt.Database.Tables
For Each crtable In crtables
crtableLogoninfo = crtable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
crtable.ApplyLogOnInfo(crtableLogoninfo)
Next crtable
CrystalReportViewer1.ReportSource = crypt
End Sub
请帮我解决这个问题
Please help me regarding this
推荐答案
你可能没有给出DB名称和密码在那个特定的Crystal报告中。
You may have not giving DB name and its password while in that particular Crystal report.
这篇关于水晶报告的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文