TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Karthik K
1k
738
192.4k
Load Report failed. In Crytal Report .. How to solve . ?
Jan 2 2018 3:14 AM
Hi All ,
I am using crystal report in vs 2008 . When I load the report in cystal viewer.
its shows like Load report failed exception
* I have checked the sql authentication. That's also correct. I am sharing my code.
anybody knows suggest me with example ..
Sample Code :
public
void
loadcry(
string
DCNO,
string
VID)
{
TableLogOnInfos crtableLogoninfos =
new
TableLogOnInfos();
TableLogOnInfo crtableLogoninfo =
new
TableLogOnInfo();
ConnectionInfo crConnectionInfo =
new
ConnectionInfo();
Tables CrTables;
string
q2=
"SELECT * FROM VIEW_DCREPORT WHERE DCNO="
+DCNO +
" AND VID="
+VID +
""
;
Ds = SqlObj.GetData_DS(q2);
rep =
new
ReportDocument();
rep.Load(Server.MapPath(
"~/DCRPT.rpt"
));
rep.SetDataSource(Ds.Tables[0]);
CrTables = rep.Database.Tables;
foreach
(CrystalDecisions.CrystalReports.Engine.Table CrTable
in
CrTables)
{
crtableLogoninfo = CrTable.LogOnInfo;
crtableLogoninfo.ConnectionInfo = crConnectionInfo;
CrTable.ApplyLogOnInfo(crtableLogoninfo);
}
rep.Refresh();
CrystalReportViewer1.ReportSource = rep;
Session[
"Report"
] = rep;
CrystalReportViewer1.DataBind();
CrystalReportViewer1.RefreshReport();
}
Thanks in advance ,
Karthik k
Reply
Answers (
6
)
save image into folder and database its path from web servic
Can we make the background of a testbox transparent?