V Squared's Blog

Tips on building ASP.NET applications as well as anything else that might come to mind.

How to set the number of rows to print in Crystal Reports

clock February 1, 2009 04:09 by author Vince Varallo

To make it show 10 records per page do the following

1. Open the Crystal Report in Design View

2. Right click on the Details section and select Section Expert

3. Make sure the Details section is selected in the Section Expert dialog box.  Check the box that says "New Page After"

4. Click the formula editor button to the right of the checkbox.

5. Enter the following formula

if Remainder (RecordNumber, 10) = 0 then true else false

6. Click Save and Close and then click OK.

If you run the report it should break after each 10 rows.

If you want more or less than 10 per page change 10 to something else in line 5.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Hello out there

clock January 26, 2009 16:15 by author Vince Varallo

Welcome to my blog.  I've recently published a book for Wrox call "ASP.NET 3.5 Enterprise Application Development using Visual Studio 2008".  The goal of this blog is to communicate changes or fix issues related to the book as well as start posting some tips and tricks which I have learned or am learning about ASP.NET.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


ASP.NET 3.5

The book explains how to build a 3-layered application from the ground up and also includes features in many business applications.  An ASP.NET application is built for a fictitious company's HR department to track vacation requests.  Some of the features included in the application are

  1. Role based security
  2. Crystal Reports for .NET
  3. Creating dashboards with the Web Part controls.
  4. Displaying data with the GridView control and creating custom server controls
  5. Using the calendar control
  6. A custom control that allows the user to build their own queries to filter reports
  7. A workflow engine
  8. Auditing
  9. Exception handling with the Exception Management Block
  10. The Health Monitoring features in .NET
  11. And much more.  There is even a chapter that explains how to build a Windows Service to send emails.

The last chapter even builds a code generator that ingrates into the "Add New Item" dialog in Visual Studio. 

This book is packed with plenty of sample code that you can use in your own applications and uses some of the newer features in Visual Studio and the .NET Framework 3.5 such as LINQ to SQL, extension methods, partial methods, LINQ to object, and much more.

Join the fight against cancer

RecentPosts

Sign in