-
Generating Reports
Hello Guys, Im a beginner into Programming and im learning on my own, So i have a few doubts.
Im creating a small application that calculates the scores in a Snooker Match, All the calculation part is done and the display part is done.
Now i want it to be able to generate a report for the entire match which can be printed out.
How do i approach towards doing this?
Should i learn about servers and data bases coz i dont kno how to work with them yet.
if yes which server is most suitable and will it be free??
And if i can get links to tutorials that any of you might have posted online or other tutorials that you think are good, relating to servers and databases, then that would be very helpful :)
-
Re: Generating Reports
If there is a lot of data that you want to store then using a database is always a good idea. It doesn't necessarily have to be a database server, it depends on how you want to use it. If your application is a simple Windows Forms app then I guess that the database could be stored together with your app (since nobody and nothing else will use it). For these kind of databases you have a few choices, you could use Access or SQLLite, for example, but I would actually recommend SQL Server Compact Edition. Even though SQL Server CE does have "server" in its name it's really a rather simple engine that you can embed within your own application and use and distribute for free.
Since it comes with Visual Studio you should actually already have it installed. I would recommend that you start by reading this blog post as an introduction and a way to play around a bit with it. The next step is to design the database that suites your needs and implement it in your application.
-
Re: Generating Reports
It all rather depends on exactly what you want from this. If you want to store match reports and other data for later use then we might need to think about databases although there are plenty of alternatives. If you just want a printed report for the current game then a simple StringBuilder and Print Document may be more than sufficient. At this stage you need to be thinking about exactly what you want to produce and what uses you want to put it to rather than picking a 'technology' and trying to squeeze the document into conforming with it.