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