ThomW
ThomW

Reputation: 165

Reports in a .NET Winforms App

I'm writing a Winforms application and I've been writing these awful HTML reports where I have templates set up and use String.Replace to get my variables into the templates, then output the results to a WebBrowser control. I really don't like this set up.

I'd love to be able to use ASP.NET for my reports, but my clients don't want to have to run IIS on all the machines this is getting installed on, so that's not really an option.

Upvotes: 5

Views: 6190

Answers (7)

IssamElbaytam
IssamElbaytam

Reputation:

For an advanced reporting solution that goes beyond the dataset only reportviewer in VS, you should consider Data Dynamics Reports

It offers all that is in SSRS and adds Master Reports, Themes, Calendar data region, Data Visualization (Databar, Sparkline, Iconset, ColorScale, ...), complete object model for maximum programming flexibility, royalty free end user report designer, barcode report item, excel template export and data merging, and much more. You can download a trial from Data Dynamics (now GrapeCity) and try it with few reports, you will not be disappointed.

Upvotes: 0

Goran
Goran

Reputation: 6846

Why not using xsl to generate html reports? Much nicer than doing string replace.

Upvotes: 1

Alex Lyman
Alex Lyman

Reputation: 15935

You might look into Cassini -- a free ASP.NET web server component that you can embed directly in your WinForms application. The UltiDev version (linked) is based on the code that Microsoft released back in .NET 1.0, which was also used for the Visual Studio 2005+ Development Web Server.

Upvotes: 0

mattlant
mattlant

Reputation: 15451

Like was said earlier, use the report viewer with client side reporting. You can create reports the same way as you do for sql reporting services, except you dont need sql server(nor asp.net). Plus you have complete control over them(how you present, how you collect data, what layer they are generated in, etc). You can also export as PDF and excel.

Here is a great book i recommend to everyone to look at if interested in client side reports. It gives a lot of great info and many different scenarios and ways to use client side reporting.

http://www.apress.com/book/view/9781590598542

Upvotes: 3

Biri
Biri

Reputation: 7181

Have you tried the reportviewer control? Your customers will be happy with the fancy new reports. It is template based and can include data from database or from code data, you can use parameters, images, and the result can be exported to Excel or to PDF.

Plus the control has some basic functionality like paging, zooming, printing, finding...

Why do you need ASP.NET? I don't see, what difference it can make. Maybe you can render your HTML more easily, but it's still not "real" reporting.

Upvotes: 4

David
David

Reputation: 900

You can use the version of Crystal Reports included in Visual Studio and save the output to a .PDF file which wouldn't be too clumsy to read from a browser. (That's what I did on my last contract)

Upvotes: 1

itsmatt
itsmatt

Reputation: 31406

While I haven't used it, I hear a lot of podcast ads for Telerik reporting. Might be worth looking at. Looks pretty sweet.

Upvotes: 1

Related Questions