Thursday, December 6, 2012

“Report Label” Property

The “Report Label” property allows specifying the header text displayed at the top of a report.

By default, the name of the controller will be displayed. The picture below shows the default header text of a report created from Customers “grid1” view.

Customers report with default header text of 'Customers' at the top of the page.

Let’s change the label of the report.

Start the Project Designer. In the Project Explorer, switch to the Controllers tab. Double-click on Customers / Views / grid1 node.

View 'grid1' of Customers controller.

Change the following:

Property New Value
Report Label List of Customers

Press OK to save. On the toolbar, press Browse.

Navigate to the Customers page. On the action bar, press Report | PDF Document.

Printing a PDF Report from Customers grid view.

Open the PDF file that was downloaded to your hard drive. The report will have the specified text displayed at the top of the page.

Customers report with customized header text of 'Report of All Customers' at the top of the page.

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 http://codeontime.com