RDLC Report Design Basic Setup in Visual Studio

Before Starting to design RDLC report in visual studio, I prefer to do some basic setup or say prerequisite setup in visual studio. In this post, I will share my basic RDLC report setup and some report designing tips.

At the end of this:
You will able to do basic setup in visual studio report designer that is required for RDLC report development

Before we start:
We will design and upgrade reports by using the Microsoft Dynamics NAV Development Environment. The software requirements for designing and upgrading reports are as follows:
  • Microsoft Report Viewer (if not already installed on target computer Microsoft Dynamics NAV setup will install during installation)
  • Microsoft Visual Studio or Microsoft SQL Server Report Builder. 
  • Dataset in the report

Basic Setup To Create an RDLC report Layout

  1. Open report using Microsoft Dynamics NAV Development Environment and open layout
    1. Tools > Object Designer
    2. Report > Design
    3. View > layout 
  2. Visual studio will opens and now open basic toolbar
    1. View > Toolbox (Ctrl + Alt + X)
    2. View > Properties Windows (F4)
    3. View > Report Data (Ctrl + Alt + D)
    Report Data Toolbox
  3. Now let's setup toolbar
    1. Toolbar setup in report design setup in visual studio
    2. View > Toolbars > Layout + Report + Report Borders + Report Formatting + Standard
  4. I usually rearrange these toolbar as shown in picture below. 
    Toolbar arrangement for easy report design in visual studio
  5. Report properties setup
    1. Right click on report and select properties
    2. On properties window select page units  -> centimeter/inches 
    3. Select Orientation -> Portrait/Landscape 
    4. Paper size/Type -> A4/Letter/other as you required
    5. At the beginning I always give margin of 0.4 inches on each side which I will adjust in future if required
    6. After this all setup done click OK 
      Report Properties Page setup
  6. Font and text-box setup : Either in font toolbox in the top or in properties windows set Font as following
    1. FontFamily : Segoe UI
    2. FontSize: 8pt
    3. FontStyle: Normal
    4. FontWeight: Default
    5. TextDecoration: Default 
      Font Setting in RDLC report design in Visual studio
    6. Also set CanGrow: False so even if text is not fit in the text box it will not grow and change design
    7. Padding: 0pt, 0pt, 0pt, 0pt
    8. TextAlign: Right
    9. Text-box Size: 
      1. Width: depends
      2. Height: 0.16654in ~ 0.2in 
        Text-box size and padding setting in report design in visual studio

TIPS for Report Design:

  1. Data remine less report perform best so when designing data-set always try to get exact data you need, do not filter data in report
  2. Make report body width less than actual report width.
    we setup report width to 8.5inch and set margin to 0.4inch in left and right both side then report body width should be less than 8.5 - 0.4 - 0.4 = 7.7 inch
  3. Try to make proper alignment of text box so report looks beautiful.
  4. Zoom the windows to 400% and see if there is unnoticed horizontal or vertical gap between text-boxes and also you can use background color to check if the there is some thing missing in report design.

Reference:

 <https://msdn.microsoft.com/en-us/library/dd301054(v=nav.71).aspx>

At the end:

I will improve this post hence it could be resource for future. If you have any ideas or tips or comment please feel free to drop here.


Post a Comment

Thank you for comment, I really appreciate your view.

–>