Link to home
Start Free TrialLog in
Avatar of bek
bekFlag for United States of America

asked on

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
Avatar of existenz2
existenz2
Flag of Netherlands image

This is a good tutorial for ASP.NET, but it works the same in C#:
http://aspalliance.com/articleViewer.aspx?aId=215
Avatar of bek

ASKER

Thanks, but I already took a look at that one.  I need something that will provide some sample code for reporting from a dataset.
Avatar of bek

ASKER

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.
Avatar of cyberdevil67
cyberdevil67

Before this question is deleted...

Hve you considered another option to this.

https://www.experts-exchange.com/questions/21414572/Develop-Reports-in-NET.html
Avatar of bek

ASKER

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!
You don't need to register anything.

What made you think you need to register dll's?
Avatar of bek

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of cyberdevil67
cyberdevil67

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bek

ASKER

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.
glad to help