Solved

What should I use in place of ReportDocument object in Crystal Reporting in a ASP .NET 2.0 Project?

Posted on 2008-06-19
2
431 Views
Last Modified: 2013-11-26
Can anyone tel me a replacement object for the ReportDocument object in the code below please!!!!

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Text;
using CrystalDecisions.Web;
//using System.Web.Security;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;

namespace Webtest1 {
    public partial class _Default : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {
            {
            ReportDocument rptDoc=new ReportDocument();
            CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1=new CrystalReportViewer();
            //rptDoc = New ReportDocument();

            rptDoc.FileName = string.Format(@"c:\\report1.rpt");
            //rptDoc.FileName = appPath & "\" & tmpNode.Text
             // false in line below is regarding  wheher or not to match upper or lowercase
            rptDoc.SetDatabaseLogon("myuser", password1", "hostname1", "MyDbName",false);
            rptDoc.VerifyDatabase();
            CrystalReportViewer1.ReportSource = rptDoc;
        }
        }
    }
}
0
Comment
Question by:Robert Silver
2 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 21827447
WHat problem are you having?

mlmcc
0
 
LVL 7

Accepted Solution

by:
Dauhee earned 500 total points
ID: 21830584
crystaldecisions.crystalreports.engine.reportdocument ????
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is an explanation of a simple data model to help parse a JSON feed
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question