Skip to main content

Using Custom .NET Code with Reports

  • Chapter
Pro SQL Server 2008 Reporting Services
  • 363 Accesses

Abstract

SSRS 2008 offers software developers a variety of options when it comes to customizing reports through code. These options give software developers the ability to write custom functions using .NET code that can interact with report fields, parameters, and filters in much the same way as any of the built-in functions. To give just two examples, you can create a custom function that does the following: Implements a business rule and returns true or false based on the logic: You can use such a function as part of an expression to change the value or style of a field based on the fields or parameters passed to the function. Reads data from sources not otherwise available to SSRS 2008 directly: You can do this by having your custom code read data directly from the source. In this chapter, you will examine how to read data from an XML file. The sample code for this chapter also includes an example of reading data from a Web service. Although we won’t cover it in this chapter, with SSRS 2008 you can also create custom extensions that will allow you to view data in the Report Designer as a data source.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Rodney Landrum, Shawn McGehee, and Walter J. Voytek III

About this chapter

Cite this chapter

(2008). Using Custom .NET Code with Reports. In: Pro SQL Server 2008 Reporting Services. Apress. https://doi.org/10.1007/978-1-4302-0651-4_5

Download citation

Publish with us

Policies and ethics