FREE reporting in X# with Microsoft "Reporting Services" ...
Posted: Mon Jan 29, 2018 4:25 pm
Hi Forum guys,
Well, for guys who like getting their money's worth, there is some good news from my efforts of this afternoon. For those with Visual Studio available to them.
For XSharp 'user folks', we can use the standard C# template tools to create with a Wizard a report which can reside in the C# Class Library of our solution, but be used in an X# main module of the application. See the image below :-
Yes, it has been a bit fiddly to get it to work the first time, but now I know what to do it should be quick and easier next time. And I will record exactly what I do to make it work, again.
Before I comment further, lets see the Wizard in the 'New Item' dialog, as well as the results when we create and run the right X# code. First the Wizard :-
And now the xBase code that we need to call, run, and show the report :-
Obviously, we can see the report at the bottom of the second image - okay, its not fantastic looking, or even tidy - BUT - it all works fine. Which was the whole point of the exercise in the first place.
The data is gotten from an SQL Server database called "Adventure Works" and the standard version of '2012' was a MS download a couple of years back. Its free to hand around.
The code was taken from an MSDN sample written in C#, and all I have done is get it to work so that the X# code references the objects stored in the C# Class Library. It has to be done this way so that we can use the Wizard for placing a new report item entry into the C# ClassLibrary. We don't write any C# code as such.
I will be filling out my folder structure in 'ClickStartXSharp' eNotes on this topic later today.
Okay, the whole 'Reporting Services' thing seems a bit dated (old fashioned even) and a bit awkward - BUT - hey! its free. And you do have to use Visual Studio.
I will now try and make a report with some better looking data, as well as another from an 'in-memory' data object.
I have to say however, it is a much better user experience (to my mind) using a modern third party offering like DevExpress, than the FREE Microsoft product. It has taken me much longer to get some results and it was not really a pleasant experience, whereas the DevExpress exploration was good fun, and rewarding. Other modern third party tools may also be as rewarding.
Still, beggars can't be choosers ;-0)
So watch this space those who want "old lamps for new" - this is a joke on the famous line from the pantomime called Aladdin ("new lamps for old"). Something for nothing !?
Hope this interests a few guys needing reports.
Cheers,
Phil.
Wales, UK.
Well, for guys who like getting their money's worth, there is some good news from my efforts of this afternoon. For those with Visual Studio available to them.
For XSharp 'user folks', we can use the standard C# template tools to create with a Wizard a report which can reside in the C# Class Library of our solution, but be used in an X# main module of the application. See the image below :-
Yes, it has been a bit fiddly to get it to work the first time, but now I know what to do it should be quick and easier next time. And I will record exactly what I do to make it work, again.
Before I comment further, lets see the Wizard in the 'New Item' dialog, as well as the results when we create and run the right X# code. First the Wizard :-
And now the xBase code that we need to call, run, and show the report :-
Obviously, we can see the report at the bottom of the second image - okay, its not fantastic looking, or even tidy - BUT - it all works fine. Which was the whole point of the exercise in the first place.
The data is gotten from an SQL Server database called "Adventure Works" and the standard version of '2012' was a MS download a couple of years back. Its free to hand around.
The code was taken from an MSDN sample written in C#, and all I have done is get it to work so that the X# code references the objects stored in the C# Class Library. It has to be done this way so that we can use the Wizard for placing a new report item entry into the C# ClassLibrary. We don't write any C# code as such.
I will be filling out my folder structure in 'ClickStartXSharp' eNotes on this topic later today.
Okay, the whole 'Reporting Services' thing seems a bit dated (old fashioned even) and a bit awkward - BUT - hey! its free. And you do have to use Visual Studio.
I will now try and make a report with some better looking data, as well as another from an 'in-memory' data object.
I have to say however, it is a much better user experience (to my mind) using a modern third party offering like DevExpress, than the FREE Microsoft product. It has taken me much longer to get some results and it was not really a pleasant experience, whereas the DevExpress exploration was good fun, and rewarding. Other modern third party tools may also be as rewarding.
Still, beggars can't be choosers ;-0)
So watch this space those who want "old lamps for new" - this is a joke on the famous line from the pantomime called Aladdin ("new lamps for old"). Something for nothing !?
Hope this interests a few guys needing reports.
Cheers,
Phil.
Wales, UK.