cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report Data Source

Former Member
0 Kudos

Hi everybody. Everything I've read and watched on the Internet suggests Crystal Reports creates a report using data from some established third party technology like a database. I have an instance of a C# object in my application containing many data fields with associated properties that I would like Crystal Reports to generate a report for, is this possible? I thought maybe the Developer version of Crystal Reports 10, but haven't recognised it if I can.  I don't think it matters but I'm developing using C#, WPF, .Net 4, MSVS 2010 Thankyou.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

How about feeding the data into a .NET Dataset, then passing that dataset to the report?

For more info see:

1511438 - How to use datasets to pass data to crystal reports

and:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b18...

VS2010, make sure you are using Crystal Reports for Visual Studio 2010

Developer Help:

SAP Crystal Reports .NET SDK Developer Guide

SAP Crystal Reports .NET API Guide

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

- Ludek

Former Member
0 Kudos

Hi, thanks for your help on this issue Ludek. I'm still getting across the dataset concepts, gradually making sense. I'm not so sure it is possible to use Crystal Reports though using WPF, I've downloaded what I thought to be the right files but I'm not seeing the Viewer anywhere in VS2010. Also another thing I've not managed to sort out is that the project I add the Crystal Report to compiles fine but the start up project then complains it cant see that it cant see the namespace of that project.

Error23The type or namespace name 'LongTermPlanning' does not exist in the namespace 'PEHMS' (are you missing an assembly reference?)C:\Users\john.mcdonald\Documents\Visual Studio 2010\Projects\PEHMS\trunk\Workstation\app.xaml.cs1113Workstation

Remove the crystal report and all compiles again, even when leaving in the references in, so its not the references. I did see one suggestion on the web that it may have something to do with the compiler options such ans anyCPU and x86, all using anyCPU. It seems to fall over once I've finished the design phase i.e. selecting the data source using the wizard. Im using WPF, msvs 2010 .NET framework 4 and c#. I've read alot on the web regarding WPF and it seems it should be possible. I need to use the designer as some of the reports will be quite detailed. I've also tried the Forms hosting. Thankyou.

Answers (0)