No Data from Crystal Report

D

Dave McKie

Hi all,

I am trying to do my first Crystal Report with the bundled version of
VB.Net version 2003. I am familiar with creating reports in Crystal
version 9...so I though it would be a piece of cake. I cannot get any
data to display with the report. I am using

* a form that host's the CrystalReportViewer,
* a ReportDocument that points to the report,
* a SqlDataAdapter
* and a SqlConnection.

I have generated a dataset throught the SqlDataAdapter which created
the xsd. file. I have set the CrystalReportViewer.ReportSource to the
created report. The database is set for ADO.NET datasets and points
to the dataset

When I run the report column fields shows but no data. In the Field
Explorer, I choose Browse Field Data and it displays no data for any
of the fields.

Do I need code in the form that hosts the CrystalReportViewer?
I have tried the following 2 lines in the form load event

crPreveiwLabels.SetDataSource(dsPreviewLabels)
CrystalReportViewer1.ReportSource = crPreveiwLabels

What am I missing to generate a simple, straight forward report with
no parameters read from an ADO.NET dataset.

Any samples would be appreciated.
thanks
Dave McKie
10/28/2004
(e-mail address removed)
 
G

Guest

Dave,

The Crystal Report site
(http://support.businessobjects.com/fix/downloads_updates.asp) has about 2
dozen sample applications that for VB.Net 2003 that show you all the code
necessary.

go to this link, scroll down to the bottom of the page to the section Sample
Reports and Applications. There you will find the gold mine you are looking
for. Let me know if you need more help.

Scott
 
T

thomas wenning

Dave McKie said:
Hi all,

I am trying to do my first Crystal Report with the bundled version of
VB.Net version 2003. I am familiar with creating reports in Crystal
version 9...so I though it would be a piece of cake. I cannot get any
data to display with the report. I am using

* a form that host's the CrystalReportViewer,
* a ReportDocument that points to the report,
* a SqlDataAdapter
* and a SqlConnection.

Here are some links:
http://support.businessobjects.com/communityCS/TechnicalPapers/apps_net.pdf.asp
http://support.crystaldecisions.com/communityCS/TechnicalPapers/apps_vbnet.pdf.asp
http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf
http://support.businessobjects.com/communityCS/TechnicalPapers/csharp_builder_app_deployment.pdf.asp
http://support.businessobjects.com/communityCS/TechnicalPapers/rtm_reportingoffadonetdatasets.pdf
http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_adonet.pdf
http://www.c-sharpcorner.com/Code/2003/Sept/CrystalReportsIntroduction.asp
http://www.businessobjects.com/global/pdf/dev_zone/crystal_reports_net_startup_guide.zip
http://support.businessobjects.com/...pdates/cr_net_sdk_tutorial_samples_en.zip.asp
http://support.businessobjects.com/communityCS/TechnicalPapers/cr_net_sdk_additional_en.zip.asp
http://www.123aspx.com/redir.aspx?res=30160
http://support.crystaldecisions.com...lPapers/rtm_designerandwinformsviewer.pdf.asp
http://www.dotnetjunkies.com/Tutorial/790775A0-C493-46D8-ABE0-40CA588D33D3.dcik
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1031/crystlmn/html/crtskdeployingw
indowsapplications.htm
http://www.codeproject.com/csharp/creasy.asp
http://www.codeproject.com/csharp/ReportFramework.asp
http://www.codeproject.com/Purgatory/Crystal_net_parameters.asp
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=2065&lngWId=10

Greeting

Thomas
 

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