• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 717
  • Last Modified:

How to do a simple report in C# ?

Hello.

I need to write a simple report for a desktop application (that uses a dataset).  Can someone provide some example code?

I'm not picky--it can use the native C# printing ability or Crystal Reports.  Either one is fine, but the example needs to be fairly simplistic, as this is my first exposure to printing in C#.

Thanks,
Brian
0
bek
Asked:
bek
  • 5
  • 4
1 Solution
 
existenz2Commented:
This is a good tutorial for ASP.NET, but it works the same in C#:
http://aspalliance.com/articleViewer.aspx?aId=215
0
 
bekAuthor Commented:
Thanks, but I already took a look at that one.  I need something that will provide some sample code for reporting from a dataset.
0
 
bekAuthor Commented:
I think I just found a solution.  For anyone else learning how to do Crystal Reports with C#, please check out this article:

http://www.codeproject.com/aspnet/crystal_report.asp?print=true

Looks like it will be a good introduction.

EE, please delete this question.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
cyberdevil67Commented:
Before this question is deleted...

Hve you considered another option to this.

http://www.experts-exchange.com/Databases/Crystal_Reports/Q_21414572.html
0
 
bekAuthor Commented:
cyberdevil67,

That is a great article--I appreciate you sending it to me.  I almost went with Crystal until I realized that it's COM-based and I'd have to bother with registering DLLs.  I ended up working late into the night last night and have a GDI+ solution started that I think will work fine.

Thanks for responding, though!
0
 
cyberdevil67Commented:
You don't need to register anything.

What made you think you need to register dll's?
0
 
bekAuthor Commented:
I've got a friend who does Crystal.  He said Crystal isn't "native .NET" for version 10 and below (we don't have the newest verison).  Is he wrong?
0
 
cyberdevil67Commented:
Yes 100%.

If you are using .Net Crystal 10 is part of the Visual Studio .Net  package, which means you don't need to buy anything or get a license, just import the namespace like anything else.

However if you want to deploy it you will need to add merge modules to a setup and deployment package, and Crystal 10 will load all older version reports and convert them to Crystal 10 .

0
 
bekAuthor Commented:
Yeah, I should have clarified--he's talking about deploying the reports with my application.

You've put so much work into my little question, I can't help but give you the credit. :)  Thanks so much.
0
 
cyberdevil67Commented:
glad to help
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now