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
436 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A short article about a problem I had getting the GPS LocationListener working.
In this post we will learn different types of Android Layout and some basics of an Android App.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

728 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