Creating and Loading Reports Dynamically

Another fairly common scenario is dynamic report creation. In this case, you would configure the report server to allow access from your application server, and would use a Web service similar to the one described in the Loading Documents from Files on the Server topic to obtain the report stream directly from the report server (instead of loading it from a file).

The specific steps involved depend on the specific report server you are using. To dynamically obtain a PDF report from a Microsoft SQL Server Reporting Services server, for example, you would modify the Web service listed in the Loading Documents from Files on the Server topic as follows:

      Visual Basic

      C#

As you can see, the difference is minimal. This approach still allows you to specify the report caching policy on the report server, so there is no loss of performance or scalability.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.