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
Bill Farrell
NA
6
0
Crystal Reports and ASPX web pages
Oct 22 2018 3:05 PM
Hi All,
Does anyone have an updated version of adding a Crystal Report to an aspx page? I followed the instructions on your site and my report still won't show on the web site page.
I'm running C# in an ASPX Web Solution
An expample of my C# code is:
ReportDocument crsrpt = null;
protected void Page_Load(object sender, EventArgs e)
{
btnShow.Text = "Show Report";
crsrpt = new ReportDocument();
crsrpt.Load(HostingEnvironment.MapPath("~/repos/DefJobTickets.rpt"));
CrystalReportViewer1.ReportSource = crsrpt;
}
protected void btnShow_Click(object sender, EventArgs e)
{
CrystalReportViewer1.ReportSource = crsrpt;
CrystalReportViewer1.Visible = true;
}
If anyone is interested in this, please let me know and maybe we can write an updated set of instructions, if anyone sees a need for it.
Thanks a bunch,
Bill Farrell (NOT Will Farrell. I had the name first!)
Reply
Answers (
2
)
filter excel-sheet data in mvc.net
When Sending sms to mobile?