Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't create an instance of Crystal Report

Status
Not open for further replies.
Oct 3, 2007
15
US
I have a asp website in which I've added a crystal report (crystalreport1.rpt). I'm trying to load the report with data from a dataset when the page loads, but I am unable to create an instance of the report

Code:
dim rpt as new crystalreport1

crystalreport1 doesn't show up in intellisense. Any thoughts on why I can't create a instance of the report.

thanks,
 
the web project may be treating the report as an external file, rather than a compiled object.
Check the project properties of the report. Content type should be something like "compiled".

I took a look at a project I have with compiled reports. the project file contains
Code:
<Compile Include="MyReport.cs">
   <AutoGen>True</AutoGen>
   <DesignTime>True</DesignTime>
   <DependentUpon>MyReport.rpt</DependentUpon>
   <SubType>Component</SubType>
</Compile>

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top