Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: .NET 2008 Blank Report Post Reply Post New Topic
Author Message
Huntsecker
Newbie
Newbie


Joined: 19 Aug 2008
Location: United Kingdom
Online Status: Offline
Posts: 3
Quote Huntsecker Replybullet Topic: .NET 2008 Blank Report
    Posted: 19 Aug 2008 at 1:07am

Hey,
not sure If I'm posting in correct forum but couldnt see one for .Net 2008, my issue is have recently bought the crystal reports .net programming book but its for 2005 so not sure if I'm missing a step..

I've created a dataset and to check this works I have a second form with DataGridView on it and have connected that to the dataset and without doing anything I have the data I need; now when I create a Crystal Report viewer, then select create report, make the report which uses the dataset, it shows random data ie down the left side is says monday to friday (no date fields in my report). when I then Run the report it just shows blank. what I've done above is basically part 1 of the book. any one able to point me in the right direction.
Cheers Smile
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 19 Aug 2008 at 1:12pm

Hi. Unfortunately, I'm working on the .NET 2008 book now. However, binding to a dataset works the same in both versions.

A couple things to consider: The dataset has to be a class within your application. It can't be an external DLL (if it is, I have a whole section in the new book detailing how to get that to work). Are you creating the XSD file using the current dataset structure? They have to match EXACTLY for CR to report from it. Also, make sure you specify a table name when creating the dataset and passing it to crystal Reports. Sometimes it helps to pass the DataTable object directly to CR via the SetDataSource() method.
 
I hope this helps.
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
Huntsecker
Newbie
Newbie


Joined: 19 Aug 2008
Location: United Kingdom
Online Status: Offline
Posts: 3
Quote Huntsecker Replybullet Posted: 20 Aug 2008 at 1:29am

Tongue Cheers for the speedy reply, it put me on the right track Tongue the code that made it work was


 Me.DataTable1TableAdapter.Fill(Me.Report_data_set.DataTable1)
        CrystalReport11.SetDataSource(Me.Report_data_set)


much appreciated
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 20 Aug 2008 at 2:11pm
Great. Can you show me the code you were using prior to this? It would be good to see the differences.
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
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.015 seconds.