Talk with the Author
 Crystal Reports Forum : General Information : Talk with the Author
Message Icon Topic: ASP Integration Post Reply Post New Topic
Author Message
SunDevilPrgmr
Newbie
Newbie


Joined: 20 Nov 2007
Location: United States
Online Status: Offline
Posts: 6
Quote SunDevilPrgmr Replybullet Topic: ASP Integration
    Posted: 26 Nov 2007 at 9:13pm
I bought your book and am a little confused about the integration of a report in a web form. 
 
The book says Dim MyReport as New CrystalReport1() -- page328.
My intellisense does not bring CrystalReport1 at all.  Instead it brings "Report".  Is CrystalReport1 the actual name of the report or i sit replaced in the newer VS2005?
 
I am currently using Crystal XI and VS2005.  Also, the reports I am using are stand alone reports created in Crystal XI and not part of VB.NET.
 
SunDevil
 
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 26 Nov 2007 at 10:33pm
With ASP.NET 2005 they removed the ability to instantiate reports as objects. Thus, intellisense won't work with ASP.NET (although this is still valid for Windows applications). Instead you have to instantiate a ReportDocument object and use the Load() method to load a report into memory.
Dim myReport as New ReportDocument()
myReport.Load("C:\sample.rpt")
myCrystalReportViewer.ReportSource = myReport
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
SunDevilPrgmr
Newbie
Newbie


Joined: 20 Nov 2007
Location: United States
Online Status: Offline
Posts: 6
Quote SunDevilPrgmr Replybullet Posted: 28 Nov 2007 at 8:59pm
Thanks... That's just what I trie and eventually got it working.  I even posted this on the forum.  But thanks for the response. 
 
Would you be working on the VS2005 version?  You should - because there are hardly any books on Crystal programming and you seem to have a nice way to explain as compared to other books I have read.  Hope to find more of your work. 
 
Sun Devil
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.