?
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
Medium Priority
?
437 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 1500 total points
ID: 21830584
crystaldecisions.crystalreports.engine.reportdocument ????
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…
Suggested Courses

801 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