Crystal Reports 9.2.3300.0 - ReportDocument is not defined

  • Thread starter Dmitriy Bessmertnyy
  • Start date
D

Dmitriy Bessmertnyy

Hi everybody!

I installed Crystal Reports, which brought me new version of
CrystalReports library V9.2.3300.0

New CrystalReportViewer can print and export reports, that's why I
installed it.

BUT project can not bi compiled anymore - there is no such class in
CrystalDecisions.CrystalReports.Engine.ReportDocument!


Here are source code:
---------------------

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports System.Data.OleDB
Imports System.Web
Public Class Reports

Inherits System.Web.UI.Page

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim i, ReportFileName, SQL As String
Dim oReportSource As
CrystalDecisions.CrystalReports.Engine.ReportDocument


^-Here is compiler error (ReportDocument is not defined)

oReportSource = New ReportDocument
ReportFileName = Request.QueryString("report").ToString()
oReportSource.Load("C:\Inetpub\wwwroot\WebApplication1\" +
ReportFileName + ".rpt")

oReportSource.SetDataSource(ds)

crViewer.ReportSource = oReportSource

End Sub

End Class
 
K

krushna

Hi Everyone,

I too am using the same version and face the same problem. If someone
has resolved the issue, please let me know and if possible send me a
snippet code

Thanks
Krushna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top