ALL SOFTWARE EXERCISES
- EXERCISES HOME PAGE (893)
- Access 2010 (66)
- Access VBA Macros (17)
- Advanced VBA (29)
- DAX (0)
- Excel (0)
- Excel 2010 (83)
- Excel 2013 (10)
- Excel VBA Macros (37)
- Power BI - Excel 2013 (25)
- Power BI - Excel 2016 (24)
- Power BI Desktop (26)
- PowerPivot 2010 (26)
- Report Builder (42)
- SQL (192)
- SSAS - multidimensional (21)
- SSAS - tabular (29)
- SSIS Integration Services (40)
- SSRS 2012 (53)
- SSRS 2016 (43)
- Visual Basic (45)
- Visual C Sharp (65)
- WPF - Visual C# (20)
SSRS 2012 EXERCISES
- Designing a Simple Report (2)
- Data sources and datasets (1)
- Tables (2)
- Grouping tables (2)
- Expressions (2)
- Parameters (5)
- Indicators (1)
- Gauges (2)
- Matrices (3)
- Charts (2)
- Data bars and sparklines (1)
- Lists (2)
- Subreports (1)
- Revision of expressions (3)
- Variables (3)
- Embedding code (3)
- Basic Custom Assemblies (2)
- Examples of custom assemblies (1)
- Customising reports (2)
- Stored procedures in SSRS (2)
- Parameters using Stored Procedures (2)
- Dropdown parameters (3)
- Multivalue dropdowns (1)
- Improving report navigation (2)
- Linking reports (drilldown) (1)
- Dynamic reports (2)
Exercise: Include dynamic images using custom assembly
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
The answer to the exercise will be included and explained if you attend the course listed below!
You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
This exercise isn't as scary as the title above makes it sound! The idea is to display an image next to each film, according to whether it's short (under 2 hours), medium (2-3 hours) or long (3 hours +).
This person clearly isn't a film buff: the shorter the film the better.
Thoughts on how to go about doing this are shown overleaf!
To start our report off, first add 3 images from the folder shown at the start of this exercise into a new report called Not a film buff:
Right-click on the Images category, and choose to add 3 images from the folder shown at the start of this exercise (they've got PNG extensions).
Now create a report listing out the names and lengths of films, with an image showing that each film is great:
Write a function in a class library, build it and copy the DLL over so that it is available to you in your report server project. Here's what the function should return:
|Length of film (minutes)||Image returned|
|Up to 120||great|
|120 to 180||ok|
|More than 180||yawn|
You can write your code for the custom assembly using either VB or C# - the choice is yours!
Set this function to be the source for your image:
Click on the expression builder tool to set the source for this image to be the results of your function.
Check that your images look correct in your report!