Saturday, December 15, 2012

Order Form Sample–Part 32

Let’s create a data controller view that will serve as a foundation for the report.

Start the Project Designer. In the Project Explorer, switch to the Controllers tab. Right-click on OrderDetails / Views node, and press New View.

Creating a new view for OrderDetails controller.

Assign the following values:

Property Value
Id report1
Label Order Report
Show in View Selector false
Create custom report template true

Press OK to create the view.

Expand OrderDetails / Fields node. Click on OrderID field node. Hold Shift,and select the last field, ExtendedPrice. Drop the fields onto OrderDetails / Views / report1 node.

Dropping all fields in OrderDetails controller onto view 'report1'.     All fields added as data fields in view 'report1'.

On the toolbar, press Browse to generate the custom report template (.RDLC) file.

No comments:

You can find more about Code OnTime Generator, Data Aquarium Framework, and other great products here.

© 2010 Code OnTime LLC. Intelligent code generation software for ASP.NET. Visit us at