-
Mar 30th, 2004, 02:54 PM
#1
Thread Starter
Fanatic Member
[Resolved] How to declare Crystal Report in VB .Net
I changed from MS .Net 2002 to VB .Net 2003.
I have a web page where I have crystal reports.
I also upgraded too Crystal Reports 10
This is my code.
VB Code:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports System.IO
Public Class PriceCheckPrintView
Inherits System.Web.UI.Page
Protected WithEvents CrystalReportViewer1 As CrystalDecisions.Web.CrystalReportViewer
Dim crpt As PriceCheckRpt
This used to work in my other versions.
The Dim crpt as PriceCheckRpt is what is not recognized.
There is Crystal report in my project called PriceCheckRpt.
Anyone have any ideas why this is now not recognized?
Thanks
Last edited by indydavid32; Apr 6th, 2004 at 09:13 AM.
David Wilhelm
-
Mar 31st, 2004, 08:20 AM
#2
Thread Starter
Fanatic Member
-
Apr 1st, 2004, 12:02 AM
#3
Frenzied Member
Try to remove and add the report to your project again. Are you using CR bundled or stand alone version?
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Apr 1st, 2004, 01:48 PM
#4
Thread Starter
Fanatic Member
I have removed and added the report. I have also created a new report with the updated software. When I try to dim the report on the web page with the CrViewer on it, it still has the same problem.
I am using Crystal Reports 10 Developer addition. So, when I click on Add new items in my web projects, the Crystal Report shows up inside VB .Net, not in the Crystal 10 software package.
-
Apr 5th, 2004, 01:49 PM
#5
Thread Starter
Fanatic Member
-
Apr 6th, 2004, 09:01 AM
#6
Thread Starter
Fanatic Member
For those of you interested, I have found the solution.
Since my Crystal Report was created in an old version, I have to open the Report as if it was made outside of the .Net environment.
VB Code:
dim crpt as new ReportDocument()
crpt.load("C:\inetpub\wwwroot\McClureNet\PriceCheckRpt.Rpt")
Last edited by indydavid32; Apr 6th, 2004 at 09:13 AM.
David Wilhelm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|