Quality .NET reports from DBFs ........
Posted: Tue Jan 09, 2018 9:57 pm
Hi all Forum guys,
I have just completed a small but interesting section of my research material for the Cologne April 2018 conference - on creating and printing reports.
It would appear that using DBF data to form nice reports is going to be quite easy, in some ways at least - if we don't work directly on the backend data files.
If we read it, and then make our data into 'in-memory' business objects, and then place these in a Collection (List<T>), we can quickly and easily create and preview a report.
Here is a example I did on the way to bed, just now :-
The Persons 'Get' method is shown below :-
The next image shows the design details - BUT - these were done automatically by the Wizard - easy :-
Finally, the bit I have been waiting to tell you :whistle: :pinch: :S we can use LINQ on the DBF data - once it has been converted to .NET types in the Properties for the Person class. Yes, you now can't escape it, LINQ with your favourite DBF file data - check this out :-
I am currently working on doing the same sort of report - BUT - with all hand code, and not using the Designer tool directly.
I may need to call on Nick's skill and expertise for this.
Hope this interests some of you guys - maybe those with DBFs ?
Best Regards,
Phil.
Wales, UK.
I have just completed a small but interesting section of my research material for the Cologne April 2018 conference - on creating and printing reports.
It would appear that using DBF data to form nice reports is going to be quite easy, in some ways at least - if we don't work directly on the backend data files.
If we read it, and then make our data into 'in-memory' business objects, and then place these in a Collection (List<T>), we can quickly and easily create and preview a report.
Here is a example I did on the way to bed, just now :-
The Persons 'Get' method is shown below :-
The next image shows the design details - BUT - these were done automatically by the Wizard - easy :-
Finally, the bit I have been waiting to tell you :whistle: :pinch: :S we can use LINQ on the DBF data - once it has been converted to .NET types in the Properties for the Person class. Yes, you now can't escape it, LINQ with your favourite DBF file data - check this out :-
I am currently working on doing the same sort of report - BUT - with all hand code, and not using the Designer tool directly.
I may need to call on Nick's skill and expertise for this.
Hope this interests some of you guys - maybe those with DBFs ?
Best Regards,
Phil.
Wales, UK.