on 07-05-2012 10:58 PM
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.
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Error | 23 | The 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.cs | 11 | 13 | Workstation |
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.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.