Click here to Skip to main content
15,886,817 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a program which analyses some information in runtime and save the analysis results in certain variables. I have 15 of these variables, of which, 13 are string type, 1 integer and 1 bitmap image. I want to let the user to generate a report based on the analysis data. I have been trying to search the forums for help, but couldn't find a proper solution yet. First of all, I don't want to save these analysed results in a database (SQL etc). All i want to do is just to display the report to the user based on analysis results and let him save or print it.

This is what I did so far based on numerous hints that I get from forums. I added a report.rdlc file and created a template for the report.

I also created a dataset.xsd file and added the analysis parameters to the dataset. All the dataset values are added to the report template.

Now this is where I am stuck. I don't have an idea how to proceed from here and generate a report. Right now what my program does is, upon button click, the analysed parameters will be saved in their respective variables that I specified in the main program. What I want to achieve is to use these results and generate a report as in the template.

Any guidance on how to achieve this is much appreciated.

Thank you!
Posted

1 solution

I would use DocumentViewer.
You can drop everything right in FixedDocument.
So your image, textblocks, usercontrols, etc..


It's very easy to write code so that the user can move them around on the page en thus creating his own layout.

Very easy to print or save the document.

I use it for reporting a large amount of data, and the only thing I do is put my already existing UIcontrols on the Document.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900