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
426 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now