ActiveReports Developer 7
LINQ Sample
See Also Support Forum
ActiveReports Developer 7 > ActiveReports Developer Guide > Samples and Walkthroughs > Samples > Section Report > Data > LINQ Sample

Glossary Item Box

The LINQ sample demonstrates how to use LINQ in an ActiveReports Developer report.


ShowSample Location

ShowVisual Basic.NET

<User Folder>\ComponentOne Samples\ActiveReports Developer 7\Section Reports\VB.NET\Data\LINQ

ShowC#

<User Folder>\ComponentOne Samples\ActiveReports Developer 7\Section Reports\C#\Data\LINQ

ShowRuntime Features

This sample uses a LINQ Query to sort recordsets in descending order of age. The resultant recordsets are converted to an IList and used as a datasource for the report which is displayed in Viewer control.

ShowProject Details

ShowViewerForm

Displays the report output results. ToList method is set in DataSource property of the report to extract objects that use LINQ.

ShowrptLINQtoObject report

The report DataSource is a list of Person constructor created from generic class. Creates a query to sort in descending order of Age.

See Also

©2014. ComponentOne, a division of GrapeCity. All rights reserved.