A Very Simple Report

  • Thread starter Thread starter ecurb
  • Start date Start date
E

ecurb

Hello,

I am writing a small Winforms app in VB.NET.

The app will be given away with a mechanical laboratory device. The app
performs a couple of simple calculations... and has to output a
certificate style report. The report will contain largely static
information, together with some variable data.. namely a couple of
variable results.

The report would need to be able to be print previewed, and have good
formatting.


I have looked at all of the various dotnet reporting components
available, and they are all overkill for my requirement (& too
expensive).

Can anyone think of a solution, or does anyone know of a simple
component ?


Thanks !
 
You can use the classes from System.Drawing.Printing in association with the
PrintDialog and PrintPreviewDialog, these are are part of the .NET
Framework. There's no visual designer for creating reports and the code
isn't that pretty but it'll do the job.
 
Where do you stored the data for your application or do you?

Sql Server, MS Access, MySql?

Yosh
 
Hi Yosh,
Thats the thing.. this report is so simple it doesn't read a
database...
It will simple have some static text, and a perhaps two numbers that
area variable.

Ideally, I need some way of :
1) A WYSIWYG type report designer to define the report template (ie.
defining the formatted text and placeholders for the "parameter"
data).
2) Ability to somehow pass paramaters to above definition from VB.NET
code at runtime
3) Be able to print preview & print the report.

I am sure most of the off the shelf report components could do this..
but like I say.. that seems like overkill.

Thanks for replying Yosh. Any ideas ?
 
Does your version of VS.Net come with Crystal Reports? - Try adding a
new item to the project and see if Crystal Report is available.

It gives a nice interface for designing basic reports.
Not too sure about printing - haven't got that far yet, sorry.

hth,
Alan.
 
Hey thanks for that Alan.. I tried it & Crystal is there.. I had no
idea !
Just trying to get my head around how to use it now.
 
Back
Top